me
/
guix
Archived
1
0
Fork 0

gnu: npiet: Use gexps.

* gnu/packages/piet.scm (npiet): Use Gexp.
[arguments]: Use Gexp and remove tail #t.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Zheng Junjie 2023-09-06 17:46:49 +08:00 committed by Ludovic Courtès
parent 40a76a7750
commit 62e1387065
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 12 additions and 10 deletions

View File

@ -21,6 +21,7 @@
(define-module (gnu packages piet)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
@ -44,16 +45,17 @@
"0nl59fhdqqr7nslxdirdn8nvlq5wws67c7jyx2ckbmxbc9h8bv9d"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-binaries
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/npietedit")
`("PATH" ":" prefix
(,(dirname
(search-input-file inputs "bin/wish")))))
#t))))))
(list #:phases
#~(modify-phases %standard-phases
(add-after 'install 'wrap-binaries
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out
"/bin/npietedit")
`("PATH" ":" prefix
(,(dirname
(search-input-file
inputs "bin/wish")))))))))))
(inputs
(list gd giflib libpng tk))
(native-inputs (list groff))