2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
|
2016-04-12 19:13:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-24 13:14:08 +00:00
|
|
|
pname = "samtools";
|
2021-10-11 23:19:36 +00:00
|
|
|
version = "1.13";
|
2016-04-12 19:13:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://github.com/samtools/samtools/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2021-10-11 23:19:36 +00:00
|
|
|
sha256 = "sha256-YWyi4FHMgAmh6cAc/Yx8r4twkW3f9m87dpFAeUZfjGA=";
|
2016-04-12 19:13:40 +00:00
|
|
|
};
|
|
|
|
|
2017-10-01 07:30:56 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2016-06-24 13:14:08 +00:00
|
|
|
|
2017-10-01 07:30:56 +00:00
|
|
|
buildInputs = [ zlib ncurses htslib ];
|
2017-09-30 17:44:48 +00:00
|
|
|
|
2016-06-24 13:14:08 +00:00
|
|
|
configureFlags = [ "--with-htslib=${htslib}" ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional (ncurses == null) "--without-curses";
|
2016-04-12 19:13:40 +00:00
|
|
|
|
2017-10-01 07:30:56 +00:00
|
|
|
preCheck = ''
|
|
|
|
patchShebangs test/
|
|
|
|
'';
|
|
|
|
|
2017-09-30 17:44:48 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-24 13:14:08 +00:00
|
|
|
description = "Tools for manipulating SAM/BAM/CRAM format";
|
2016-04-12 19:13:40 +00:00
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.htslib.org/";
|
2016-06-24 13:14:08 +00:00
|
|
|
platforms = platforms.unix;
|
2020-10-17 10:26:20 +00:00
|
|
|
maintainers = with maintainers; [ mimame unode ];
|
2016-04-12 19:13:40 +00:00
|
|
|
};
|
|
|
|
}
|