mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
d7c3926352
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/bcftools/versions.
39 lines
967 B
Nix
39 lines
967 B
Nix
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, python, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "bcftools";
|
|
version = "1.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${name}.tar.bz2";
|
|
sha256 = "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg";
|
|
};
|
|
|
|
buildInputs = [ htslib zlib bzip2 lzma curl perl python ];
|
|
|
|
makeFlags = [
|
|
"HSTDIR=${htslib}"
|
|
"prefix=$(out)"
|
|
"CC=cc"
|
|
];
|
|
|
|
preCheck = ''
|
|
patchShebangs misc/
|
|
patchShebangs test/
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.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.mimadrid ];
|
|
};
|
|
}
|