mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
nix develop: Set output paths to writable locations
Currently, they're set to $(pwd)/outputs/$outputName. This allows commands like 'make install' to work.
This commit is contained in:
parent
691a1bd717
commit
3156560d41
3 changed files with 63 additions and 46 deletions
11
flake.nix
11
flake.nix
|
@ -421,6 +421,8 @@
|
|||
stdenv.mkDerivation {
|
||||
name = "nix";
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
buildInputs = buildDeps ++ propagatedDeps ++ perlDeps;
|
||||
|
||||
inherit configureFlags;
|
||||
|
@ -428,15 +430,6 @@
|
|||
enableParallelBuilding = true;
|
||||
|
||||
installFlags = "sysconfdir=$(out)/etc";
|
||||
|
||||
shellHook =
|
||||
''
|
||||
export prefix=$(pwd)/inst
|
||||
configureFlags+=" --prefix=$prefix"
|
||||
PKG_CONFIG_PATH=$prefix/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
PATH=$prefix/bin:$PATH
|
||||
unset PYTHONPATH
|
||||
'';
|
||||
});
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue