3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/science/biology/htslib/default.nix
2020-10-29 11:18:29 +01:00

37 lines
924 B
Nix

{ stdenv, fetchurl, zlib, bzip2, lzma, curl, perl }:
stdenv.mkDerivation rec {
pname = "htslib";
version = "1.11";
src = fetchurl {
url = "https://github.com/samtools/htslib/releases/download/${version}/${pname}-${version}.tar.bz2";
sha256 = "1mrq4mihzx37yqhj3sfz6da6mw49niia808bzsw2gkkgmadxvyng";
};
# perl is only used during the check phase.
nativeBuildInputs = [ perl ];
buildInputs = [ zlib bzip2 lzma curl ];
configureFlags = [ "--enable-libcurl" ]; # optional but strongly recommended
installFlags = [ "prefix=$(out)" ];
preCheck = ''
patchShebangs test/
'';
enableParallelBuilding = true;
doCheck = true;
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.mimame ];
};
}