me
/
guix
Archived
1
0
Fork 0

gnu: imv: Record absolute file name of 'imv' script.

* gnu/packages/image-viewers.scm (imv)[arguments]: Fix the 'imv-dir'
script in the 'record-absolute-file-names' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
master
Timotej Lazar 2023-02-05 13:23:50 +01:00 committed by Leo Famulari
parent 1ec22406b2
commit ce28d14a9c
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 4 additions and 2 deletions

View File

@ -767,10 +767,12 @@ displayed in a terminal.")
(add-after 'install 'record-absolute-file-names (add-after 'install 'record-absolute-file-names
(lambda _ (lambda _
;; 'imv' is a script that execs 'imv-x11' or 'imv-wayland'. ;; 'imv' is a script that execs 'imv-x11' or 'imv-wayland'.
;; Record their absolute file name. ;; 'imv-dir' execs 'imv'. Record their absolute file names.
(let ((bin (string-append #$output "/bin"))) (let ((bin (string-append #$output "/bin")))
(substitute* (string-append bin "/imv") (substitute* (string-append bin "/imv")
(("imv-") (string-append bin "/imv-"))))))))) (("imv-") (string-append bin "/imv-")))
(substitute* (string-append bin "/imv-dir")
(("imv") (string-append bin "/imv")))))))))
(native-inputs (native-inputs
(list asciidoc (list asciidoc
pkg-config)) pkg-config))