summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-09-22 22:53:15 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-09-23 00:21:40 +0200
commit3a3eb0b155054bb22c01bace4a173cc73e2b1490 (patch)
tree9e73e03808c5585733c70064948ce5c5e85041c1 /gnu/packages
parent9365a183856777823a44307add5f108889342e12 (diff)
gnu: Add rust-hts-sys-2.
* gnu/packages/crates-io.scm (rust-hts-sys-2): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9ce1c3d6c3..84f2b6e3f3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28168,6 +28168,48 @@ Hash-based Message Authentication Code algorithm} for SHA1.")
characters in HTML, decoding and unescaping HTML entities as well.")
(license license:expat)))
+(define-public rust-hts-sys-2
+ (package
+ (name "rust-hts-sys")
+ (version "2.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "hts-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1qn1qz2xa69x2dj1fbh91avm9943rbcykr37zs68pb2bdy847i3j"))
+ (modules '((guix build utils)))
+ (snippet
+ '(substitute* "Cargo.toml"
+ ;; Do not use zlib-ng; just use zlib.
+ (("features = \\[\"zlib-ng\", \"static\"\\]") "")
+ ;; No static libraries please.
+ (("\"static-curl\", \"static-ssl\",") "")
+ ((", \"static\"") "")
+ (("\\[\"static\"\\]") "[]")))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bindgen" ,rust-bindgen-0.53)
+ ("rust-bzip2-sys" ,rust-bzip2-sys-0.1)
+ ("rust-cc" ,rust-cc-1)
+ ("rust-curl-sys" ,rust-curl-sys-0.4)
+ ("rust-fs-utils" ,rust-fs-utils-1)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-libdeflate-sys" ,rust-libdeflate-sys-0.5)
+ ("rust-libz-sys" ,rust-libz-sys-1)
+ ("rust-lzma-sys" ,rust-lzma-sys-0.1)
+ ("rust-openssl-sys" ,rust-openssl-sys-0.9))))
+ (inputs
+ (list curl openssl xz zlib))
+ (native-inputs
+ (list cmake-minimal pkg-config))
+ (home-page "https://github.com/samtools/htslib.git")
+ (synopsis "Rust bindings to HTSlib")
+ (description "This library provides Rust bindings to HTSlib.")
+ (license license:expat)))
+
(define-public rust-http-0.2
(package
(name "rust-http")