nixpkgs/pkgs/by-name/bc/bcftools/package.nix

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

45 lines
1.0 KiB
Nix
Raw Normal View History

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 {
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
makeFlags = [
"HSTDIR=${htslib}"
2016-11-08 21:02:38 +00:00
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
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;
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;
homepage = "http://www.htslib.org/";
2016-06-24 13:18:08 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.mimame ];
2016-06-24 13:18:08 +00:00
};
}