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

Initial version of nix-repl

This program interactively reads a Nix expression from the user,
evaluates it, and prints the result.
This commit is contained in:
Eelco Dolstra 2013-09-02 15:18:15 +02:00
commit e90569905e
2 changed files with 67 additions and 0 deletions

10
default.nix Normal file
View file

@ -0,0 +1,10 @@
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
''