2021-03-14 18:12:53 +00:00
|
|
|
{ lib, stdenv, fetchurl, htslib, zlib, bzip2, xz, curl, perl, python3, bash }:
|
2016-06-24 13:18:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bcftools";
|
2024-09-13 06:20:40 +00:00
|
|
|
version = "1.21";
|
2016-06-24 13:18:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2024-09-13 06:20:40 +00:00
|
|
|
sha256 = "sha256-UopMwdNVU2jbdacAsio8ldqJP9GCf20wRxbf1F6k4oI=";
|
2016-06-24 13:18:08 +00:00
|
|
|
};
|
|
|
|
|
2021-03-25 09:39:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
perl
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2021-03-14 18:12:53 +00:00
|
|
|
buildInputs = [ htslib zlib bzip2 xz curl ];
|
2021-03-25 09:39:47 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2016-06-24 13:18:08 +00:00
|
|
|
|
2016-08-11 03:48:19 +00:00
|
|
|
makeFlags = [
|
|
|
|
"HSTDIR=${htslib}"
|
2016-11-08 21:02:38 +00:00
|
|
|
"prefix=$(out)"
|
2021-02-16 11:48:46 +00:00
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
2016-08-11 03:48:19 +00:00
|
|
|
];
|
2016-06-24 13:18:08 +00:00
|
|
|
|
2017-09-30 17:45:26 +00:00
|
|
|
preCheck = ''
|
2017-10-01 07:31:55 +00:00
|
|
|
patchShebangs misc/
|
|
|
|
patchShebangs test/
|
2017-09-30 17:45:26 +00:00
|
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
|
|
'';
|
|
|
|
|
2017-10-01 07:31:55 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-24 13:18:08 +00:00
|
|
|
description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.htslib.org/";
|
2016-06-24 13:18:08 +00:00
|
|
|
platforms = platforms.unix;
|
2019-09-14 10:15:46 +00:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2016-06-24 13:18:08 +00:00
|
|
|
};
|
|
|
|
}
|