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