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
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2373,13 +2373,14 @@ (define-public zchunk
"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