1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: zchunk: Use G-expressions.

* gnu/packages/compression.scm (zchunk)[arguments]:
Rewrite as G-expressions.  Use SEARCH-INPUT-FILE.
This commit is contained in:
Tobias Geerinckx-Rice
2023-07-09 02:00:04 +02:00
parent a22a6c4ce5
commit 3135d2cbfb

View File

@@ -2373,13 +2373,14 @@ reading from and writing to ZIP archives.")
"19rw870150w1c730wzg2pn68ixmscq8cwa3vricqhwxs5l63r5wr"))))
(build-system meson-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/zck_gen_zdict.c"
(("/usr/bin/zstd")
(string-append (assoc-ref inputs "zstd")
"/bin/zstd"))))))))
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-file-name
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/zck_gen_zdict.c"
(("/usr/(bin/zstd)" _ file)
(string-append (search-input-file inputs file)))))))))
(native-inputs
(list pkg-config))
(inputs