mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: fennel: Update to 1.0.0.
* gnu/packages/lua.scm (fennel): Update to 1.0.0. [origin]: Remove unneeded snippet. [arguments]: Remove custom 'patch-lua-calls, 'install-manpage phases. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
eb4edd7fde
commit
6ed2c5e2a4
1 changed files with 4 additions and 22 deletions
|
@ -1171,7 +1171,7 @@ (define-public emilua
|
||||||
(define-public fennel
|
(define-public fennel
|
||||||
(package
|
(package
|
||||||
(name "fennel")
|
(name "fennel")
|
||||||
(version "0.9.1")
|
(version "1.0.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -1180,11 +1180,7 @@ (define-public fennel
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"07qgycf5cxm9zcc4fgpgvplg95ndavh3ynpdjpvzkikzbnyj7xia"))
|
"0d4rpf0f2aqxlca3kxrbhjjhf1knhiz8ccwlx8xid05mc16la70y"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
(delete-file "fennelview.lua") #t))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
'(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
||||||
|
@ -1193,28 +1189,14 @@ (define-public fennel
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-before 'build 'patch-lua-calls
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let ((lua (string-append (assoc-ref inputs "lua") "/bin/lua")))
|
|
||||||
(setenv "LUA" lua)
|
|
||||||
(substitute* "old/launcher.lua"
|
|
||||||
(("/usr/bin/env lua") lua))
|
|
||||||
#t)))
|
|
||||||
(add-after 'build 'patch-fennel
|
(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")
|
||||||
(string-append (assoc-ref inputs "lua") "/bin/lua")))
|
(string-append (assoc-ref inputs "lua") "/bin/lua")))))
|
||||||
#t))
|
|
||||||
(delete 'check)
|
(delete 'check)
|
||||||
(add-after 'install 'check
|
(add-after 'install 'check
|
||||||
(assoc-ref %standard-phases 'check))
|
(assoc-ref %standard-phases 'check)))))
|
||||||
(add-after 'install 'install-manpage
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(install-file "fennel.1"
|
|
||||||
(string-append (assoc-ref outputs "out")
|
|
||||||
"/share/man/man1"))
|
|
||||||
#t)))))
|
|
||||||
(inputs `(("lua" ,lua)))
|
(inputs `(("lua" ,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")
|
||||||
|
|
Loading…
Reference in a new issue