diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11T10·50+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11T10·50+0200 |
commit | 22a47ab03c8a1bf81df3aa0d29a4d6a29aacc36f (patch) | |
tree | 3042369eab7c00fe5561e11507a0334fee0278c1 /default.nix | |
parent | 6a4a8208be10462b1051c689b26577dc36495632 (diff) |
Fix building against Nix 1.7
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/default.nix b/default.nix index c4a967bf5282..435c16c09157 100644 --- a/default.nix +++ b/default.nix @@ -3,11 +3,12 @@ with import nixpkgs { inherit system; }; runCommand "nix-repl" - { buildInputs = [ readline nixUnstable boehmgc ]; } + { buildInputs = [ readline nix boehmgc ]; } '' mkdir -p $out/bin g++ -O3 -Wall -std=c++0x \ -o $out/bin/nix-repl ${./nix-repl.cc} \ - -I${nixUnstable}/include/nix -L${nixUnstable}/lib/nix \ - -lformat -lutil -lstore -lexpr -lmain -lreadline -lgc + -I${nix}/include/nix \ + -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ + -DNIX_VERSION=${(builtins.parseDrvName nix.name).version} '' |