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>
This commit is contained in:
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

View file

@ -767,10 +767,12 @@ (define-public imv
(add-after 'install 'record-absolute-file-names
(lambda _
;; '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")))
(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
(list asciidoc
pkg-config))