Handle non-numeric version strings

Fixes #2.
This commit is contained in:
Eelco Dolstra 2014-07-24 17:46:58 +02:00
parent 66b2d18243
commit 2cf0e67761

View file

@ -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}\"
''