1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 {
name = "${pname}-${version}";
pname = "samtools";
major = "1.5";
major = "1.6";
version = "${major}.0";
src = fetchurl {
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
sha256 = "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5";
sha256 = "17p4vdj2j2qr3b2c0v4100h6cg4jj3zrb4dmdnd9d9aqs74d4p7f";
};
buildInputs = [ zlib ncurses ];
propagatedBuildInputs = [ htslib ];
configureFlags = [ "--with-htslib=${htslib}" ]
++ 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; {
description = "Tools for manipulating SAM/BAM/CRAM format";
license = licenses.mit;