diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-10-27 11:53:04 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-10-27 11:53:04 +0200 |
commit | f8d01933838f719b2511a9a73a5fa710cdd59496 (patch) | |
tree | b9e9cca6735e6c95639230a182fe2e60a9338be7 | |
parent | 9bff7e8ee26c97441858e1cea097f44c6db61235 (diff) |
Pass the right argv when calling the build hook
Call it as `['nix', '__build-remote', ... ]` rather than the previous
`["__build-remote", "nix __build-remote", ... ]` which seemed to have
been most likely unintended
-rw-r--r-- | src/libstore/build/hook-instance.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/hook-instance.cc b/src/libstore/build/hook-instance.cc index 1f19ddccc..cb58a1f02 100644 --- a/src/libstore/build/hook-instance.cc +++ b/src/libstore/build/hook-instance.cc @@ -16,11 +16,11 @@ HookInstance::HookInstance() buildHookArgs.pop_front(); Strings args; + args.push_back(std::string(baseNameOf(buildHook))); for (auto & arg : buildHookArgs) args.push_back(arg); - args.push_back(std::string(baseNameOf(settings.buildHook.get()))); args.push_back(std::to_string(verbosity)); /* Create a pipe to get the output of the child. */ |