Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
htslib,
zlib,
bzip2,
xz,
curl,
perl,
python3,
bash,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bcftools";
version = "1.22";
src = fetchFromGitHub {
owner = "samtools";
repo = "bcftools";
tag = finalAttrs.version;
hash = "sha256-S+FuqjiOf38sAQKWYOixv/MlXGnuDmkx9z4Co/pk/eM=";
};
nativeBuildInputs = [
autoreconfHook
perl
python3
];
buildInputs = [
htslib
zlib
bzip2
xz
curl
];
nativeCheckInputs = [
htslib
];
strictDeps = true;
makeFlags = [
"HSTDIR=${htslib}"
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
preCheck = ''
patchShebangs misc/
patchShebangs test/
sed -i -e 's|/bin/bash|${bash}/bin/bash|' test/test.pl
'';
enableParallelBuilding = true;
doCheck = true;
meta = with 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 ];
};
})