aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-10-25 21:17:32 +0200
committerThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2022-10-26 11:53:46 +0200
commit9bff7e8ee26c97441858e1cea097f44c6db61235 (patch)
tree7b5f723c1e310113191bdf2a0795b8298c8cabec /src/nix
parent899878f77a1b29b337aca409ec3f7a420e574a6a (diff)
Fix `nix __build-remote`
Because of a wrong index, `nix __build-remote` wasn't working. Fix the index to restore the command (and the build hook).
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index d78312944..f8e93e367 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -270,7 +270,7 @@ void mainWrapped(int argc, char * * argv)
programPath = argv[0];
auto programName = std::string(baseNameOf(programPath));
- if (argc > 0 && std::string_view(argv[0]) == "__build-remote") {
+ if (argc > 1 && std::string_view(argv[1]) == "__build-remote") {
programName = "build-remote";
argv++; argc--;
}