me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-zstd-sys-2.

* gnu/packages/crates-io.scm (rust-zstd-sys-2): New variable.
(rust-zstd-sys-1): Inherit from rust-zstd-sys-2.
master
Efraim Flashner 2023-02-22 20:03:48 +02:00
parent 750f2ec932
commit dfa0832702
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 28 additions and 7 deletions

View File

@ -72362,9 +72362,36 @@ library.")
(("rust-libc" ,rust-libc-0.2)
("rust-zstd-sys" ,rust-zstd-sys-1))))))
;; TODO: Unbundle zstd.
(define-public rust-zstd-sys-2
(package
(name "rust-zstd-sys")
(version "2.0.7+zstd.1.5.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "zstd-sys" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "1xf7ng97h6h89bvisllj05vapkqcacn88y9bfm6jjmgyl8xrql4l"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bindgen" ,rust-bindgen-0.63)
("rust-cc" ,rust-cc-1)
("rust-libc" ,rust-libc-0.2)
("rust-pkg-config" ,rust-pkg-config-0.3))))
(home-page "https://github.com/gyscos/zstd-rs")
(synopsis "Low-level bindings to the zstd compression library")
(description "This package provides low-level Rust bindings to the zstd
compression library.")
(license (list license:expat license:asl2.0))))
;; TODO: Unbundle zstd.
(define-public rust-zstd-sys-1
(package
(inherit rust-zstd-sys-2)
(name "rust-zstd-sys")
(version "1.6.1+zstd.1.5.0")
(source
@ -72375,18 +72402,12 @@ library.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "0cra76lginz5k659rch7axg5nyms67yffygr3k7ic7a3lb3j0lb1"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bindgen" ,rust-bindgen-0.58)
("rust-cc" ,rust-cc-1)
("rust-libc" ,rust-libc-0.2)
("rust-pkg-config" ,rust-pkg-config-0.3))))
(home-page "https://github.com/gyscos/zstd-rs")
(synopsis "Low-level bindings to the zstd compression library")
(description "This package provides low-level Rust bindings to the zstd
compression library.")
(license (list license:expat license:asl2.0))))
("rust-pkg-config" ,rust-pkg-config-0.3))))))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances