aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-30 13:31:05 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-10-30 13:31:05 +0100
commit12991152be43f63634e48a7d118040e485125df4 (patch)
tree73e7adf5ab77f0e6849fbc0ec58670601862e783 /src/nix-build/nix-build.cc
parent63c80ae26fcde8cc2e18a01e325ef214de084517 (diff)
nix-build: Fix --hash
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 8e56e5a46..21b0a18dd 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -167,6 +167,9 @@ void mainWrapped(int argc, char * * argv)
buildMode = bmRepair;
}
+ else if (*arg == "--hash")
+ buildMode = bmHash;
+
else if (*arg == "--run-env") // obsolete
runEnv = true;