lix/default.nix
Eelco Dolstra 2dff9556a4
Fix build
2017-04-25 16:55:03 +02:00

17 lines
502 B
Nix

{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem }:
with import nixpkgs { inherit system; };
let nix = nixUnstable; in
runCommandCC "nix-repl"
{ buildInputs = [ pkgconfig readline nix boehmgc ]; }
''
mkdir -p $out/bin
g++ -O3 -Wall -std=c++14 \
-o $out/bin/nix-repl ${./nix-repl.cc} \
$(pkg-config --cflags nix-main) \
-lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \
-DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\"
''