about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-01-03T16·10+0100
committerVincent Ambo <tazjin@gmail.com>2018-01-03T21·51+0100
commit61be253d6baa99f0a2208425b8a03b444bb1b184 (patch)
tree4f8df88fdef6378b7b946b6ea4cbc0906a2db801 /default.nix
parent0d7f845bf5e54f2af6bda4cdf9476bcd66ff08d4 (diff)
feat(build): Configurable output location
For easier Nix builds!
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/default.nix b/default.nix
index 43950571c51d..02f8c225f9e8 100644
--- a/default.nix
+++ b/default.nix
@@ -33,10 +33,7 @@ stdenv.mkDerivation rec {
     # Build Lisp
     cd $src
     quicklisp init
-    sbcl --load build.lisp
-
-    # "Install" result
-    cp $src/gemma $out/bin/gemma
+    env GEMMA_BIN_TARGET=$out/bin/gemma sbcl --load build.lisp
   '';
 
   installPhase = "true";