2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "samtools";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/samtools/samtools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "1dp5wknak4arnw5ghhif9mmljlfnw5bgm91wib7z0j8wdjywx0z2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib ncurses htslib ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-htslib=${htslib}" ]
|
|
|
|
++ stdenv.lib.optional (ncurses == null) "--without-curses";
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs test/
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools for manipulating SAM/BAM/CRAM format";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "http://www.htslib.org/";
|
|
|
|
platforms = platforms.unix;
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ mimame unode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|