nixpkgs/pkgs/development/libraries/science/biology/htslib/default.nix

37 lines
926 B
Nix
Raw Normal View History

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 {
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;
homepage = "http://www.htslib.org/";
2016-06-24 06:08:16 -07:00
platforms = platforms.unix;
maintainers = [ maintainers.mimame ];
2016-06-24 06:08:16 -07:00
};
}