about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-24T15·46+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-24T15·46+0200
commit2cf0e67761121a4ddceb69a932bc2e3c0cd6cb6c (patch)
tree6658e9afbe6f54a71407d23a44ea08060d8e0d69 /default.nix
parent66b2d18243d055bcbc6c3f7708960575d02db09c (diff)
Handle non-numeric version strings
Fixes #2.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 435c16c09157..e7cdc23580e4 100644
--- a/default.nix
+++ b/default.nix
@@ -10,5 +10,5 @@ runCommand "nix-repl"
       -o $out/bin/nix-repl ${./nix-repl.cc} \
       -I${nix}/include/nix \
       -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \
-      -DNIX_VERSION=${(builtins.parseDrvName nix.name).version}
+      -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\"
   ''