nixFlakes: enable flakes
This commit is contained in:
parent
93c5837be5
commit
118ef67e07
@ -227,6 +227,13 @@ in rec {
|
|||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
});
|
});
|
||||||
|
|
||||||
nixFlakes = nixUnstable;
|
nixFlakes = callPackage ({ makeWrapper, runCommand, ... }:
|
||||||
|
runCommand "nix-flakes" { buildInputs = [ makeWrapper ]; } ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
for bin in ${nixUnstable}/bin/*; do
|
||||||
|
makeWrapper $bin $out/bin/$(basename $bin) \
|
||||||
|
--suffix NIX_CONFIG "\n" "experimental-features = nix-command flakes"
|
||||||
|
done;
|
||||||
|
'') {};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user