mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05: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:
parent
a22a6c4ce5
commit
3135d2cbfb
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue