summaryrefslogtreecommitdiff
path: root/gnu/packages/lua.scm
diff options
context:
space:
mode:
authorBrandon Lucas <br@ndon.dk>2022-01-23 12:14:46 +0000
committerLudovic Courtès <ludo@gnu.org>2022-01-26 17:54:58 +0100
commit73d775f518e8bf9c658cb0a161b22209c71e75aa (patch)
tree2f947b084c17c1f263cc5b3e9a6c6222e7cd3936 /gnu/packages/lua.scm
parent532153d49cec44c1e010938fd288dd6c44509487 (diff)
gnu: fennel: Update to 03c1c95.
* gnu/packages/lua.scm (fennel): Update to 03c1c95. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/lua.scm')
-rw-r--r--gnu/packages/lua.scm70
1 files changed, 38 insertions, 32 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index e6103ba324e..ee4b7727e0f 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -1178,42 +1178,48 @@ enabled.")
1178 (license license:boost1.0))) 1178 (license license:boost1.0)))
1179 1179
1180(define-public fennel 1180(define-public fennel
1181 (package 1181 ;; The 1.0.0 release had a bug where fennel installed under 5.4 no matter
1182 (name "fennel") 1182 ;; what lua was used to compile it. There has since been an update that
1183 (version "1.0.0") 1183 ;; corrects this issue, so we can rely on the version of the lua input to
1184 (source (origin 1184 ;; determine where the fennel.lua file got installed to.
1185 (method git-fetch) 1185 (let ((commit "03c1c95f2a79e45a9baf607f96a74c693b8b70f4")
1186 (uri (git-reference 1186 (revision "0"))
1187 (url "https://git.sr.ht/~technomancy/fennel") 1187 (package
1188 (commit version))) 1188 (name "fennel")
1189 (file-name (git-file-name name version)) 1189 (version (git-version "1.0.0" revision commit))
1190 (sha256 1190 (source (origin
1191 (base32 1191 (method git-fetch)
1192 "0d4rpf0f2aqxlca3kxrbhjjhf1knhiz8ccwlx8xid05mc16la70y")))) 1192 (uri (git-reference
1193 (build-system gnu-build-system) 1193 (url "https://git.sr.ht/~technomancy/fennel")
1194 (arguments 1194 (commit commit)))
1195 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) 1195 (file-name (git-file-name name version))
1196 #:tests? #t ; even on cross-build 1196 (sha256
1197 #:test-target "test" 1197 (base32
1198 #:phases 1198 "1znp38h5q819gvcyl248zwvjsljfxdxdk8n82fnj6lyibiiqzgvx"))))
1199 (modify-phases %standard-phases 1199 (build-system gnu-build-system)
1200 (delete 'configure) 1200 (arguments
1201 (add-after 'build 'patch-fennel 1201 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1202 #:tests? #t ; even on cross-build
1203 #:test-target "test"
1204 #:phases
1205 (modify-phases %standard-phases
1206 (delete 'configure)
1207 (add-after 'build 'patch-fennel
1202 (lambda* (#:key inputs #:allow-other-keys) 1208 (lambda* (#:key inputs #:allow-other-keys)
1203 (substitute* "fennel" 1209 (substitute* "fennel"
1204 (("/usr/bin/env .*lua") 1210 (("/usr/bin/env .*lua")
1205 (search-input-file inputs "/bin/lua"))))) 1211 (search-input-file inputs "/bin/lua")))))
1206 (delete 'check) 1212 (delete 'check)
1207 (add-after 'install 'check 1213 (add-after 'install 'check
1208 (assoc-ref %standard-phases 'check))))) 1214 (assoc-ref %standard-phases 'check)))))
1209 (inputs (list lua)) 1215 (inputs (list lua))
1210 (home-page "https://fennel-lang.org/") 1216 (home-page "https://fennel-lang.org/")
1211 (synopsis "Lisp that compiles to Lua") 1217 (synopsis "Lisp that compiles to Lua")
1212 (description 1218 (description
1213 "Fennel is a programming language that brings together the speed, 1219 "Fennel is a programming language that brings together the speed,
1214simplicity, and reach of Lua with the flexibility of a Lisp syntax and macro 1220simplicity, and reach of Lua with the flexibility of a Lisp syntax and macro
1215system.") 1221system.")
1216 (license license:expat))) 1222 (license license:expat))))
1217 1223
1218(define-public fnlfmt 1224(define-public fnlfmt
1219 (package 1225 (package