nixpkgs/pkgs/applications/science/biology/bcftools/default.nix
2017-05-11 07:04:33 +01:00

29 lines
779 B
Nix

{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, perl }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "bcftools";
major = "1.4";
version = "${major}.0";
src = fetchurl {
url = "https://github.com/samtools/bcftools/releases/download/${major}/bcftools-${major}.tar.bz2";
sha256 = "0k93mq3lf73dch81p4zxi0bdll567acxfa81qzbzkqflgsjb1ccg";
};
buildInputs = [ zlib bzip2 lzma perl ];
makeFlags = [
"HSTDIR=${htslib}"
"prefix=$(out)"
"CC=cc"
];
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 ];
};
}