Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
license = lib.licenses.mit;
homepage = "http://www.htslib.org/";
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.mimame ];
};
})