about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-03-27T13·34+0200
committerEelco Dolstra <edolstra@gmail.com>2018-03-29T10·28+0200
commit2b61c749227fcfc05e34bb9ea568602868ec11cb (patch)
tree335361965b37c37635311a482946000b88507f47
parent9d1220a01d662c1089e77f16d5d3e1ead8f0ed4d (diff)
Process --option use-case-hack properly
Fixes https://github.com/NixOS/nix/issues/2009.
-rw-r--r--src/libstore/globals.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index dd01f832df0c..117404ec14c8 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -29,7 +29,7 @@ struct CaseHackSetting : public BaseSetting<bool>
     void set(const std::string & str) override
     {
         BaseSetting<bool>::set(str);
-        nix::useCaseHack = true;
+        nix::useCaseHack = value;
     }
 };