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

30 lines
779 B
Nix
Raw Normal View History

2017-05-07 22:31:35 +02:00
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, perl }:
2016-06-24 15:18:08 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "bcftools";
2017-08-13 00:17:48 +02:00
major = "1.5";
2017-05-07 22:31:35 +02:00
version = "${major}.0";
2016-06-24 15:18:08 +02:00
src = fetchurl {
2017-05-07 22:31:35 +02:00
url = "https://github.com/samtools/bcftools/releases/download/${major}/bcftools-${major}.tar.bz2";
2017-08-13 00:17:48 +02:00
sha256 = "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz";
2016-06-24 15:18:08 +02:00
};
2017-05-07 22:31:35 +02:00
buildInputs = [ zlib bzip2 lzma perl ];
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
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 ];
};
}