depot/third_party/nixpkgs/pkgs/applications/science/biology/bcftools/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

44 lines
1 KiB
Nix

{ lib, stdenv, fetchurl, htslib, zlib, bzip2, xz, curl, perl, python3, bash }:
stdenv.mkDerivation rec {
pname = "bcftools";
version = "1.11";
src = fetchurl {
url = "https://github.com/samtools/bcftools/releases/download/${version}/${pname}-${version}.tar.bz2";
sha256 = "0r508mp15pqzf8r1269kb4v5naw9zsvbwd3cz8s1yj7carsf9viw";
};
nativeBuildInputs = [
perl
python3
];
buildInputs = [ htslib zlib bzip2 xz curl ];
strictDeps = true;
makeFlags = [
"HSTDIR=${htslib}"
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
preCheck = ''
patchShebangs misc/
patchShebangs test/
sed -ie '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 ];
};
}