nixpkgs/pkgs/applications/science/biology/samtools/default.nix

27 lines
767 B
Nix
Raw Normal View History

2016-06-24 13:14:08 +00:00
{ stdenv, fetchurl, zlib, htslib, ncurses ? null }:
2016-04-12 19:13:40 +00:00
stdenv.mkDerivation rec {
2016-06-24 13:14:08 +00:00
name = "${pname}-${version}";
pname = "samtools";
2017-05-07 20:31:14 +00:00
major = "1.4";
version = "${major}.0";
2016-04-12 19:13:40 +00:00
src = fetchurl {
2017-05-07 20:31:14 +00:00
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
sha256 = "1x73c0lxvd58ghrmaqqyp56z7bkmp28a71fk4ap82j976pw5pbls";
2016-04-12 19:13:40 +00:00
};
2017-05-07 20:31:14 +00:00
buildInputs = [ zlib ncurses ];
2016-06-24 13:14:08 +00:00
configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses";
2016-04-12 19:13:40 +00:00
meta = with stdenv.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;
homepage = http://www.htslib.org/;
2016-06-24 13:14:08 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.mimadrid ];
2016-04-12 19:13:40 +00:00
};
}