about summary refs log tree commit diff
path: root/gemma.asd
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 /gemma.asd
parent0d7f845bf5e54f2af6bda4cdf9476bcd66ff08d4 (diff)
feat(build): Configurable output location
For easier Nix builds!
Diffstat (limited to 'gemma.asd')
-rw-r--r--gemma.asd5
1 files changed, 4 insertions, 1 deletions
diff --git a/gemma.asd b/gemma.asd
index e9a1d298e843..0aea9c95ff92 100644
--- a/gemma.asd
+++ b/gemma.asd
@@ -9,6 +9,8 @@
   Copyright (c) 2017 Vincent Ambo
 |#
 
+(require 'sb-posix)
+
 (defsystem "gemma"
   :version "0.1.0"
   :author "Vincent Ambo"
@@ -21,7 +23,8 @@
                 :components
                 ((:file "gemma"))))
   :build-operation program-op
-  :build-pathname "gemma"
+  :build-pathname #.(or (pathname  (sb-posix:getenv "GEMMA_BIN_TARGET"))
+                        "gemma")
   :entry-point "gemma::entrypoint"
   :description "Gemma is a household task management system"
   :long-description