From 2cf0e67761121a4ddceb69a932bc2e3c0cd6cb6c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Jul 2014 17:46:58 +0200 Subject: [PATCH] Handle non-numeric version strings Fixes #2. --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 435c16c09..e7cdc2358 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}\" ''