summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-04 17:13:05 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-04 17:13:24 -0400
commita7ec6d82336468ee10385e3cf6c631864ef0c029 (patch)
treeb7e30ce0965bbad1dcc5445763d2c31dff97fe9c
parent2435aa85e4eeb6d3aa7b5aa75b8eaa821953100f (diff)
guix: Make package compatible with `guix build -f`.
-rw-r--r--guix.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/guix.scm b/guix.scm
index c4fc329..7e46494 100644
--- a/guix.scm
+++ b/guix.scm
@@ -39,6 +39,7 @@
(guix packages)
((guix licenses) #:prefix license:)
(guix download)
+ (guix gexp)
(guix git-download)
(guix build-system gnu)
(guix utils)
@@ -126,11 +127,22 @@ SDL2 C shared library via the foreign function interface.")
(home-page "https://git.dthompson.us/guile-sdl2.git")
(license license:lgpl3+))))
+(define %source-dir (dirname (current-filename)))
+
(package
(name "chickadee")
- (version "0.1")
- (source #f)
+ (version "0.7.0")
+ (source (local-file %source-dir
+ #:recursive? #t
+ #:select? (git-predicate %source-dir)))
(build-system gnu-build-system)
+ (arguments
+ '(#:make-flags '("GUILE_AUTO_COMPILE=0")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'bootstrap
+ (lambda _
+ (invoke "sh" "bootstrap"))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)