bcftools: 1.5.0 -> 1.6.0

This commit is contained in:
mimadrid 2017-09-30 19:45:26 +02:00
parent ee2c76693e
commit bebccf176e
No known key found for this signature in database
GPG Key ID: 4D0F6894D41C6957

View File

@ -1,17 +1,22 @@
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, perl }:
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, perl, bash }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "bcftools";
major = "1.5";
major = "1.6";
version = "${major}.0";
src = fetchurl {
url = "https://github.com/samtools/bcftools/releases/download/${major}/bcftools-${major}.tar.bz2";
sha256 = "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz";
sha256 = "10prgmf09a13mk18840938ijqgfc9y92hfc7sa2gcv07ddri0c19";
};
buildInputs = [ zlib bzip2 lzma perl ];
nativeBuildInputs = [ bash ];
buildInputs = [ zlib bzip2 lzma ];
propagatedBuildInputs = [ htslib ];
makeFlags = [
"HSTDIR=${htslib}"
@ -19,6 +24,15 @@ stdenv.mkDerivation rec {
"CC=cc"
];
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' test/test.pl test/csq/{sort-csq,make-csq-test} misc/plot-vcfstats
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
'';
meta = with stdenv.lib; {
description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
license = licenses.mit;