feat(build): Configurable output location
For easier Nix builds!
This commit is contained in:
parent
0d7f845bf5
commit
61be253d6b
2 changed files with 5 additions and 5 deletions
|
@ -33,10 +33,7 @@ stdenv.mkDerivation rec {
|
||||||
# Build Lisp
|
# Build Lisp
|
||||||
cd $src
|
cd $src
|
||||||
quicklisp init
|
quicklisp init
|
||||||
sbcl --load build.lisp
|
env GEMMA_BIN_TARGET=$out/bin/gemma sbcl --load build.lisp
|
||||||
|
|
||||||
# "Install" result
|
|
||||||
cp $src/gemma $out/bin/gemma
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = "true";
|
installPhase = "true";
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
Copyright (c) 2017 Vincent Ambo
|
Copyright (c) 2017 Vincent Ambo
|
||||||
|#
|
|#
|
||||||
|
|
||||||
|
(require 'sb-posix)
|
||||||
|
|
||||||
(defsystem "gemma"
|
(defsystem "gemma"
|
||||||
:version "0.1.0"
|
:version "0.1.0"
|
||||||
:author "Vincent Ambo"
|
:author "Vincent Ambo"
|
||||||
|
@ -21,7 +23,8 @@
|
||||||
:components
|
:components
|
||||||
((:file "gemma"))))
|
((:file "gemma"))))
|
||||||
:build-operation program-op
|
:build-operation program-op
|
||||||
:build-pathname "gemma"
|
:build-pathname #.(or (pathname (sb-posix:getenv "GEMMA_BIN_TARGET"))
|
||||||
|
"gemma")
|
||||||
:entry-point "gemma::entrypoint"
|
:entry-point "gemma::entrypoint"
|
||||||
:description "Gemma is a household task management system"
|
:description "Gemma is a household task management system"
|
||||||
:long-description
|
:long-description
|
||||||
|
|
Loading…
Add table
Reference in a new issue