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