1
0
Fork 1
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:
DavHau 2021-04-22 11:06:03 +07:00
parent 93c5837be5
commit 118ef67e07

View file

@ -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;
'') {};
}