summaryrefslogtreecommitdiff
path: root/gnu/packages/lua.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-05-29 08:56:07 +0300
committerEfraim Flashner <efraim@flashner.co.il>2016-05-29 09:47:46 +0300
commita4349e7a00c479bb7926cfb5efc78daacf7191b4 (patch)
tree8b1cad19a509dd3d186094839c65aa9416cedb3a /gnu/packages/lua.scm
parent32fddd8e29ba6bfebc7ba2081f02d2dc9730256a (diff)
downloadpatches-a4349e7a00c479bb7926cfb5efc78daacf7191b4.tar
patches-a4349e7a00c479bb7926cfb5efc78daacf7191b4.tar.gz
gnu: lua: Use 'modify-phases'.
* gnu/packages/lua.scm (lua)[arguments]: Use 'modify-phases'.
Diffstat (limited to 'gnu/packages/lua.scm')
-rw-r--r--gnu/packages/lua.scm24
1 files changed, 12 insertions, 12 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index a5315342ea..f699330899 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -47,18 +47,18 @@
(guix build utils)
(srfi srfi-1))
#:test-target "test"
- #:phases (alist-replace
- 'build
- (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux")))
- (alist-replace
- 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (zero? (system* "make" "install"
- (string-append "INSTALL_TOP=" out)
- (string-append "INSTALL_MAN=" out
- "/share/man/man1")))))
- (alist-delete 'configure %standard-phases)))))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux"))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (zero? (system* "make" "install"
+ (string-append "INSTALL_TOP=" out)
+ (string-append "INSTALL_MAN=" out
+ "/share/man/man1")))))))))
(home-page "http://www.lua.org/")
(synopsis "Embeddable scripting language")
(description