samtools: 1.5.0 -> 1.6.0

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

View File

@ -1,21 +1,31 @@
{ stdenv, fetchurl, zlib, htslib, ncurses ? null }: { stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "samtools"; pname = "samtools";
major = "1.5"; major = "1.6";
version = "${major}.0"; version = "${major}.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2"; url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
sha256 = "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5"; sha256 = "17p4vdj2j2qr3b2c0v4100h6cg4jj3zrb4dmdnd9d9aqs74d4p7f";
}; };
buildInputs = [ zlib ncurses ]; buildInputs = [ zlib ncurses ];
propagatedBuildInputs = [ htslib ];
configureFlags = [ "--with-htslib=${htslib}" ] configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses"; ++ stdenv.lib.optional (ncurses == null) "--without-curses";
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' test/test.pl
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Tools for manipulating SAM/BAM/CRAM format"; description = "Tools for manipulating SAM/BAM/CRAM format";
license = licenses.mit; license = licenses.mit;