2021-03-14 18:12:53 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib, bzip2, xz, curl, perl }:
|
2016-06-24 13:08:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "htslib";
|
2020-10-29 10:18:29 +00:00
|
|
|
version = "1.11";
|
2016-06-24 13:08:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://github.com/samtools/htslib/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2020-10-29 10:18:29 +00:00
|
|
|
sha256 = "1mrq4mihzx37yqhj3sfz6da6mw49niia808bzsw2gkkgmadxvyng";
|
2016-06-24 13:08:16 +00:00
|
|
|
};
|
|
|
|
|
2017-10-01 07:12:52 +00:00
|
|
|
# perl is only used during the check phase.
|
|
|
|
nativeBuildInputs = [ perl ];
|
2017-09-30 17:43:19 +00:00
|
|
|
|
2021-03-14 18:12:53 +00:00
|
|
|
buildInputs = [ zlib bzip2 xz curl ];
|
2017-05-07 20:30:41 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--enable-libcurl" ]; # optional but strongly recommended
|
2017-05-07 20:30:41 +00:00
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "prefix=$(out)" ];
|
2016-06-24 13:08:16 +00:00
|
|
|
|
2017-10-01 07:12:52 +00:00
|
|
|
preCheck = ''
|
|
|
|
patchShebangs test/
|
|
|
|
'';
|
|
|
|
|
2017-09-30 17:43:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-06-24 13:08:16 +00:00
|
|
|
description = "A C library for reading/writing high-throughput sequencing data";
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.htslib.org/";
|
2016-06-24 13:08:16 +00:00
|
|
|
platforms = platforms.unix;
|
2019-09-14 10:15:46 +00:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2016-06-24 13:08:16 +00:00
|
|
|
};
|
|
|
|
}
|