only pass experimental-features onces to nix-build

This commit is contained in:
Jörg Thalheim
2023-09-27 15:02:21 +02:00
committed by Mic92
parent 23b762f6a2
commit cb946df8b9
2 changed files with 2 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ from .dirs import nixpkgs_flake, nixpkgs_source
def nix_command(flags: list[str]) -> list[str]: def nix_command(flags: list[str]) -> list[str]:
return ["nix", "--experimental-features", "nix-command flakes"] + flags return ["nix", "--extra-experimental-features", "nix-command flakes"] + flags
def nix_build( def nix_build(
@@ -20,8 +20,6 @@ def nix_build(
"build", "build",
"--no-link", "--no-link",
"--print-out-paths", "--print-out-paths",
"--extra-experimental-features",
"nix-command flakes",
] ]
) )
+ flags + flags

View File

@@ -89,7 +89,7 @@ let
ln -s ${nixpkgs} $out/path ln -s ${nixpkgs} $out/path
nix flake lock $out \ nix flake lock $out \
--store ./. \ --store ./. \
--experimental-features 'nix-command flakes' \ --extra-experimental-features 'nix-command flakes' \
--override-input nixpkgs ${nixpkgs} --override-input nixpkgs ${nixpkgs}
''; '';
in in