gnu: rust-autocompress-0.2: Skip build.

* gnu/packages/crates-io.scm (rust-autocompress-0.2)[arguments]: Skip
build.
[native-inputs]: Add pkg-config.
This commit is contained in:
Efraim Flashner 2023-10-08 13:36:10 +03:00
parent 5bf67e6736
commit 4ab9a2194a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -6080,15 +6080,7 @@ (define-public rust-autocompress-0.2
(arguments (arguments
(list (list
#:tests? #false ;The crate does not include test files #:tests? #false ;The crate does not include test files
#:phases #:skip-build? #t ; could not find `block` in `zstd`
'(modify-phases %standard-phases
(add-before 'patch-cargo-checksums 'do-not-build-xz
(lambda _
;; Detection of liblzma (in rust-lzma-sys, pulled in by
;; rust-hts-sys) doesn't seem to work, or perhaps it really does
;; request a static build somewhere.
(substitute* "guix-vendor/rust-lzma-sys-0.1.17.tar.xz/build.rs"
(("if .want_static && .msvc && pkg_config::probe_library\\(\"liblzma\"\\).is_ok\\(\\)") "")))))
#:cargo-inputs #:cargo-inputs
`(("rust-brotli" ,rust-brotli-3) `(("rust-brotli" ,rust-brotli-3)
("rust-bzip2" ,rust-bzip2-0.4) ("rust-bzip2" ,rust-bzip2-0.4)
@ -6105,6 +6097,7 @@ (define-public rust-autocompress-0.2
("rust-rand" ,rust-rand-0.8) ("rust-rand" ,rust-rand-0.8)
("rust-temp-testdir" ,rust-temp-testdir-0.2)))) ("rust-temp-testdir" ,rust-temp-testdir-0.2))))
(inputs (list xz)) (inputs (list xz))
(native-inputs (list pkg-config))
(home-page "https://github.com/informationsea/autocompress-rs") (home-page "https://github.com/informationsea/autocompress-rs")
(synopsis "Select decoder from magic bytes or encoder from file extension") (synopsis "Select decoder from magic bytes or encoder from file extension")
(description (description