nixFlakes: enable flakes

master
DavHau 2021-04-22 11:06:03 +07:00
parent 93c5837be5
commit 118ef67e07
1 changed files with 8 additions and 1 deletions

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