2016-06-24 15:14:08 +02:00
|
|
|
{ stdenv, fetchurl, zlib, htslib, ncurses ? null }:
|
2016-04-12 21:13:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-24 15:14:08 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "samtools";
|
2016-05-24 23:43:45 +02:00
|
|
|
version = "1.3.1";
|
2016-04-12 21:13:40 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-06-24 15:14:08 +02:00
|
|
|
url = "https://github.com/samtools/${pname}/releases/download/${version}/${name}.tar.bz2";
|
2016-05-24 23:43:45 +02:00
|
|
|
sha256 = "0znnnxc467jbf1as2dpskrjhfh8mbll760j6w6rdkwlwbqsp8gbc";
|
2016-04-12 21:13:40 +02:00
|
|
|
};
|
|
|
|
|
2016-06-24 15:14:08 +02:00
|
|
|
buildInputs = [ zlib ncurses htslib ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-htslib=${htslib}" ]
|
|
|
|
++ stdenv.lib.optional (ncurses == null) "--without-curses";
|
2016-04-12 21:13:40 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-24 15:14:08 +02:00
|
|
|
description = "Tools for manipulating SAM/BAM/CRAM format";
|
2016-04-12 21:13:40 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = http://www.htslib.org/;
|
2016-06-24 15:14:08 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimadrid ];
|
2016-04-12 21:13:40 +02:00
|
|
|
};
|
|
|
|
}
|