about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 000000000000..55c9ed9e3aff
--- /dev/null
+++ b/default.nix
@@ -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
+  ''