mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Fix incorrect $NIX_BUILD_HOOK on Nix 1.12
This commit is contained in:
parent
136f77b7b9
commit
3070c88798
1 changed files with 5 additions and 1 deletions
|
@ -389,7 +389,11 @@ in
|
|||
}
|
||||
|
||||
// optionalAttrs cfg.distributedBuilds {
|
||||
NIX_BUILD_HOOK = "${nix}/libexec/nix/build-remote.pl";
|
||||
NIX_BUILD_HOOK =
|
||||
if versionAtLeast (getVersion nix) "1.12pre4997" then
|
||||
"${nix}/libexec/nix/build-remote"
|
||||
else
|
||||
"${nix}/libexec/nix/build-remote.pl";
|
||||
NIX_REMOTE_SYSTEMS = "/etc/nix/machines";
|
||||
NIX_CURRENT_LOAD = "/run/nix/current-load";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue