From f505f588a7d00e33d26337632548b7c7809760b8 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 9 Dec 2021 09:15:41 +0100 Subject: [PATCH] gnu: Add htslib-for-samtools-1.2. * gnu/packages/bioinformatics.scm (htslib-for-samtools-1.2): New variable. --- gnu/packages/bioinformatics.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index ae450b7190..833a91b1f3 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -4965,6 +4965,30 @@ (define htslib-1.3 (base32 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9")))))) +(define htslib-for-samtools-1.2 + (package + (inherit htslib) + (version "1.2.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/samtools/htslib/releases/download/" + version "/htslib-" version ".tar.bz2")) + (sha256 + (base32 + "1c32ssscbnjwfw3dra140fq7riarp2x990qxybh34nr1p5r17nxx")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tests + (lambda _ + (substitute* "test/test.pl" + (("/bin/bash") (which "bash")))))))) + (inputs + `(("zlib" ,zlib))) + (native-inputs + `(("perl" ,perl))))) + (define-public idr (package (name "idr")