mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
e90569905e
This program interactively reads a Nix expression from the user, evaluates it, and prints the result.
10 lines
287 B
Nix
10 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
|
|
''
|