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}\"
|
||||
''
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include <nix/config.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
|
@ -291,7 +293,7 @@ static int runProgram(const string & program, const Strings & args)
|
|||
_exit(1);
|
||||
}
|
||||
|
||||
return pid.wait(true);
|
||||
return pid.wait();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue