lix/default.nix
Eelco Dolstra e90569905e Initial version of nix-repl
This program interactively reads a Nix expression from the user,
evaluates it, and prints the result.
2013-09-02 15:18:15 +02:00

11 lines
287 B
Nix

with import <nixpkgs> { };
runCommand "nix-repl"
{ buildInputs = [ readline nixUnstable boehmgc ]; }
''
mkdir -p $out/bin
g++ -O3 -Wall -o $out/bin/nix-repl ${./nix-repl.cc} \
-I${nixUnstable}/include/nix -L${nixUnstable}/lib/nix \
-lexpr -lmain -lreadline
''