From 0d7f845bf5e54f2af6bda4cdf9476bcd66ff08d4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 3 Jan 2018 16:54:45 +0100 Subject: refactor(build): Use ASDF facility for output naming Turns out there is an easy-to-use :build-pathname parameter to set the output binary name. This kills the hack! --- default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index f4a10b542691..43950571c51d 100644 --- a/default.nix +++ b/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { # # 3. Build (and don't strip!) an executable out of the Lisp backend. buildPhase = '' - mkdir -p $out/share/gemma $out/bin $src/build + mkdir -p $out/share/gemma $out/bin mkdir .home && export HOME="$PWD/.home" # Build Elm @@ -35,9 +35,8 @@ stdenv.mkDerivation rec { quicklisp init sbcl --load build.lisp - # ASDF writes this output into an extremely annoying path, but I also can't - # be bothered to figure out the output-translation definition for it. - mv $HOME/.cache/common-lisp/sbcl-*/$PWD/build/gemma $out/bin/gemma + # "Install" result + cp $src/gemma $out/bin/gemma ''; installPhase = "true"; -- cgit 1.4.1