mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 03:25:02 +00:00
nixFlakes: enable flakes
This commit is contained in:
parent
93c5837be5
commit
118ef67e07
|
@ -227,6 +227,13 @@ in rec {
|
|||
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…
Reference in a new issue