2021-04-05 15:23:46 +00:00
|
|
|
{ lib, stdenv, fetchurl, htslib, zlib, bzip2, xz, curl, perl, python3, bash }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bcftools";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-kL9kfJrXnhCiQ7gFjIc94Ff9cBLiUNWuZXSDl4ei7NY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
perl
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ htslib zlib bzip2 xz curl ];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"HSTDIR=${htslib}"
|
|
|
|
"prefix=$(out)"
|
2021-02-19 19:06:45 +00:00
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs misc/
|
|
|
|
patchShebangs test/
|
|
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|