2017-10-01 08:31:55 +01:00
|
|
|
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, bash }:
|
2016-06-24 14:18:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "bcftools";
|
2018-02-25 17:02:06 +00:00
|
|
|
version = "1.7";
|
2016-06-24 14:18:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-01 08:31:55 +01:00
|
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${name}.tar.bz2";
|
2018-02-25 17:02:06 +00:00
|
|
|
sha256 = "1l82sgw86l1626b7kxv3h0696lbj7317bb48rvqb1zqd3gcn6kyx";
|
2016-06-24 14:18:08 +01:00
|
|
|
};
|
|
|
|
|
2017-10-01 08:31:55 +01:00
|
|
|
nativeBuildInputs = [ perl ];
|
2017-09-30 18:45:26 +01:00
|
|
|
|
2017-10-01 08:31:55 +01:00
|
|
|
buildInputs = [ htslib zlib bzip2 lzma curl ];
|
2016-06-24 14:18:08 +01:00
|
|
|
|
2016-08-11 04:48:19 +01:00
|
|
|
makeFlags = [
|
|
|
|
"HSTDIR=${htslib}"
|
2016-11-08 21:02:38 +00:00
|
|
|
"prefix=$(out)"
|
2016-08-11 04:48:19 +01:00
|
|
|
"CC=cc"
|
|
|
|
];
|
2016-06-24 14:18:08 +01:00
|
|
|
|
2017-09-30 18:45:26 +01:00
|
|
|
preCheck = ''
|
2017-10-01 08:31:55 +01:00
|
|
|
patchShebangs misc/
|
|
|
|
patchShebangs test/
|
2017-09-30 18:45:26 +01:00
|
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
|
|
'';
|
|
|
|
|
2017-10-01 08:31:55 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2016-06-24 14:18:08 +01:00
|
|
|
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.mimadrid ];
|
|
|
|
};
|
|
|
|
}
|