forked from lix-project/lix
e90569905e
This program interactively reads a Nix expression from the user, evaluates it, and prints the result.
11 lines
287 B
Nix
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
|
|
''
|