Files
nixpkgs/pkgs/by-name/bc/bcftools/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.1 KiB
Nix

{
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 ];
};
})