mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Fix incorrect $NIX_BUILD_HOOK on Nix 1.12
This commit is contained in:
parent
136f77b7b9
commit
3070c88798
@ -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 New Issue
Block a user