8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
34 lines
861 B
Nix
34 lines
861 B
Nix
{ stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "samtools";
|
|
version = "1.10";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/samtools/samtools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "119ms0dpydw8dkh3zc4yyw9zhdzgv12px4l2kayigv31bpqcb7kv";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ maintainers.mimame ];
|
|
};
|
|
}
|