mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
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
|
||
|
''
|