me
/
guix
Archived
1
0
Fork 0

gnu: fennel: Update to 03c1c95.

* gnu/packages/lua.scm (fennel): Update to 03c1c95.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Brandon Lucas 2022-01-23 12:14:46 +00:00 committed by Ludovic Courtès
parent 532153d49c
commit 73d775f518
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 38 additions and 32 deletions

View File

@ -1178,42 +1178,48 @@ enabled.")
(license license:boost1.0))) (license license:boost1.0)))
(define-public fennel (define-public fennel
(package ;; The 1.0.0 release had a bug where fennel installed under 5.4 no matter
(name "fennel") ;; what lua was used to compile it. There has since been an update that
(version "1.0.0") ;; corrects this issue, so we can rely on the version of the lua input to
(source (origin ;; determine where the fennel.lua file got installed to.
(method git-fetch) (let ((commit "03c1c95f2a79e45a9baf607f96a74c693b8b70f4")
(uri (git-reference (revision "0"))
(url "https://git.sr.ht/~technomancy/fennel") (package
(commit version))) (name "fennel")
(file-name (git-file-name name version)) (version (git-version "1.0.0" revision commit))
(sha256 (source (origin
(base32 (method git-fetch)
"0d4rpf0f2aqxlca3kxrbhjjhf1knhiz8ccwlx8xid05mc16la70y")))) (uri (git-reference
(build-system gnu-build-system) (url "https://git.sr.ht/~technomancy/fennel")
(arguments (commit commit)))
'(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) (file-name (git-file-name name version))
#:tests? #t ; even on cross-build (sha256
#:test-target "test" (base32
#:phases "1znp38h5q819gvcyl248zwvjsljfxdxdk8n82fnj6lyibiiqzgvx"))))
(modify-phases %standard-phases (build-system gnu-build-system)
(delete 'configure) (arguments
(add-after 'build 'patch-fennel '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
#:tests? #t ; even on cross-build
#:test-target "test"
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-after 'build 'patch-fennel
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "fennel" (substitute* "fennel"
(("/usr/bin/env .*lua") (("/usr/bin/env .*lua")
(search-input-file inputs "/bin/lua"))))) (search-input-file inputs "/bin/lua")))))
(delete 'check) (delete 'check)
(add-after 'install 'check (add-after 'install 'check
(assoc-ref %standard-phases 'check))))) (assoc-ref %standard-phases 'check)))))
(inputs (list lua)) (inputs (list lua))
(home-page "https://fennel-lang.org/") (home-page "https://fennel-lang.org/")
(synopsis "Lisp that compiles to Lua") (synopsis "Lisp that compiles to Lua")
(description (description
"Fennel is a programming language that brings together the speed, "Fennel is a programming language that brings together the speed,
simplicity, and reach of Lua with the flexibility of a Lisp syntax and macro simplicity, and reach of Lua with the flexibility of a Lisp syntax and macro
system.") system.")
(license license:expat))) (license license:expat))))
(define-public fnlfmt (define-public fnlfmt
(package (package