about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-30T12·31+0100
committerEelco Dolstra <edolstra@gmail.com>2017-10-30T12·31+0100
commit12991152be43f63634e48a7d118040e485125df4 (patch)
tree73e7adf5ab77f0e6849fbc0ec58670601862e783 /src
parent63c80ae26fcde8cc2e18a01e325ef214de084517 (diff)
nix-build: Fix --hash
Diffstat (limited to 'src')
-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 8e56e5a46b19..21b0a18dd887 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;