mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libblockdev: Use gexps.
* gnu/packages/disk.scm (libblockdev) [phases]: Use gexps. {patch-plugin-paths}: Use search-input-file. Change-Id: I61f9b3dfdd4dc249fb0f59abb99826a8e759bb42 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c3a8251f77
commit
a8bd933362
1 changed files with 19 additions and 12 deletions
|
@ -1191,19 +1191,26 @@ to create devices with respective mappings for the ATARAID sets discovered.")
|
||||||
"1ny2glwmb5dcdv2x0giinbyma9fhk59z8117k1kr15pm7yjk7jx5"))))
|
"1ny2glwmb5dcdv2x0giinbyma9fhk59z8117k1kr15pm7yjk7jx5"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'patch-configuration-directory
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(add-after 'unpack 'patch-configuration-directory
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(lambda _
|
||||||
(substitute* "src/lib/blockdev.c"
|
(substitute* "src/lib/blockdev.c"
|
||||||
(("/etc/libblockdev/conf.d/" path) (string-append out path))))))
|
(("/etc/libblockdev/conf.d/" path)
|
||||||
(add-after 'unpack 'patch-plugin-paths
|
(string-append #$output path)))))
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-after 'unpack 'patch-plugin-paths
|
||||||
(substitute* (find-files "src/plugins" "\\.c$")
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(("(gchar \\*arg.+\\{\")([^\"]+)" all start program)
|
(substitute* (find-files "src/plugins" "\\.c$")
|
||||||
;; XXX: Use 'search-input-file' when available.
|
(("(gchar \\*arg.+\\{\")([^\"]+)" all start program)
|
||||||
(string-append start (or (which program) program)))))))))
|
(string-append
|
||||||
|
start (or (false-if-exception
|
||||||
|
(search-input-file inputs
|
||||||
|
(string-append "bin/" program)))
|
||||||
|
(false-if-exception
|
||||||
|
(search-input-file inputs
|
||||||
|
(string-append "sbin/" program)))
|
||||||
|
program)))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gobject-introspection
|
(list gobject-introspection
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue