diff options
Diffstat (limited to 'nix/nix-daemon')
| -rw-r--r-- | nix/nix-daemon/guix-daemon.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc index 23ef46ef8c0..f47d1426128 100644 --- a/nix/nix-daemon/guix-daemon.cc +++ b/nix/nix-daemon/guix-daemon.cc | |||
| @@ -480,7 +480,7 @@ main (int argc, char *argv[]) | |||
| 480 | { | 480 | { |
| 481 | std::string build_hook; | 481 | std::string build_hook; |
| 482 | 482 | ||
| 483 | build_hook = settings.nixLibexecDir + "/guix/offload"; | 483 | build_hook = settings.nixLibexecDir + "/offload"; |
| 484 | setenv ("NIX_BUILD_HOOK", build_hook.c_str (), 1); | 484 | setenv ("NIX_BUILD_HOOK", build_hook.c_str (), 1); |
| 485 | } | 485 | } |
| 486 | #else | 486 | #else |
| @@ -498,16 +498,8 @@ main (int argc, char *argv[]) | |||
| 498 | format ("build log compression: %1%") % settings.logCompression); | 498 | format ("build log compression: %1%") % settings.logCompression); |
| 499 | 499 | ||
| 500 | if (settings.useSubstitutes) | 500 | if (settings.useSubstitutes) |
| 501 | { | 501 | settings.substituters.push_back (settings.nixLibexecDir |
| 502 | /* XXX: Hack our way to use the 'substitute' script from | 502 | + "/substitute"); |
| 503 | 'LIBEXECDIR/guix' or just 'LIBEXECDIR', depending on whether | ||
| 504 | we're running uninstalled or not. */ | ||
| 505 | const string subdir = getenv("GUIX_UNINSTALLED") != NULL | ||
| 506 | ? "" : "/guix"; | ||
| 507 | |||
| 508 | settings.substituters.push_back (settings.nixLibexecDir | ||
| 509 | + subdir + "/substitute"); | ||
| 510 | } | ||
| 511 | else | 503 | else |
| 512 | /* Clear the substituter list to make sure nothing ever gets | 504 | /* Clear the substituter list to make sure nothing ever gets |
| 513 | substituted, regardless of the client's settings. */ | 505 | substituted, regardless of the client's settings. */ |
