mirror of
https://github.com/NixOS/nix.git
synced 2025-12-24 18:00:55 +01:00
Fix build
This commit is contained in:
parent
0e49f94120
commit
2dff9556a4
2 changed files with 7 additions and 5 deletions
|
|
@ -4,13 +4,13 @@ with import nixpkgs { inherit system; };
|
|||
|
||||
let nix = nixUnstable; in
|
||||
|
||||
runCommand "nix-repl"
|
||||
{ buildInputs = [ readline nix boehmgc ]; }
|
||||
runCommandCC "nix-repl"
|
||||
{ buildInputs = [ pkgconfig readline nix boehmgc ]; }
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
g++ -O3 -Wall -std=c++0x \
|
||||
g++ -O3 -Wall -std=c++14 \
|
||||
-o $out/bin/nix-repl ${./nix-repl.cc} \
|
||||
-I${nix}/include/nix \
|
||||
$(pkg-config --cflags nix-main) \
|
||||
-lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \
|
||||
-DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\"
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue