me
/
guix
Archived
1
0
Fork 0

gnu: fennel: Update to 1.2.0.

* gnu/packages/lua.scm (fennel): Update to 1.2.0.
[arguments]: Migrate to gexps.
master
Andrew Tropin 2022-08-29 09:20:18 +03:00
parent 0ea62e84a7
commit 75d7317290
No known key found for this signature in database
GPG Key ID: 2208D20958C1DEB0
1 changed files with 35 additions and 40 deletions

View File

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