nixpkgs/pkgs/applications/science/biology/bcftools/default.nix

39 lines
967 B
Nix
Raw Normal View History

{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, python, bash }:
2016-06-24 15:18:08 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "bcftools";
version = "1.9";
2016-06-24 15:18:08 +02:00
src = fetchurl {
2017-10-01 09:31:55 +02:00
url = "https://github.com/samtools/bcftools/releases/download/${version}/${name}.tar.bz2";
sha256 = "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg";
2016-06-24 15:18:08 +02:00
};
buildInputs = [ htslib zlib bzip2 lzma curl perl python ];
2016-06-24 15:18:08 +02:00
makeFlags = [
"HSTDIR=${htslib}"
2016-11-08 22:02:38 +01:00
"prefix=$(out)"
"CC=cc"
];
2016-06-24 15:18:08 +02:00
2017-09-30 19:45:26 +02:00
preCheck = ''
2017-10-01 09:31:55 +02:00
patchShebangs misc/
patchShebangs test/
2017-09-30 19:45:26 +02:00
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
'';
2017-10-01 09:31:55 +02:00
enableParallelBuilding = true;
doCheck = true;
2016-06-24 15:18:08 +02:00
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 ];
};
}