2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, python, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bcftools";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "0r508mp15pqzf8r1269kb4v5naw9zsvbwd3cz8s1yj7carsf9viw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ htslib zlib bzip2 lzma curl perl python ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"HSTDIR=${htslib}"
|
|
|
|
"prefix=$(out)"
|
|
|
|
"CC=cc"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs misc/
|
|
|
|
patchShebangs test/
|
|
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "http://www.htslib.org/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimame ];
|
|
|
|
};
|
|
|
|
}
|