1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Fix building against Nix 1.7

This commit is contained in:
Eelco Dolstra 2014-04-11 12:50:46 +02:00
parent 6a4a8208be
commit 22a47ab03c
2 changed files with 6 additions and 5 deletions

View file

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