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:
commit
e90569905e
2 changed files with 67 additions and 0 deletions
10
default.nix
Normal file
10
default.nix
Normal 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
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue