1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/science/biology/samtools/default.nix
2017-08-13 00:17:25 +02:00

27 lines
767 B
Nix

{ stdenv, fetchurl, zlib, htslib, ncurses ? null }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "samtools";
major = "1.5";
version = "${major}.0";
src = fetchurl {
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
sha256 = "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5";
};
buildInputs = [ zlib ncurses ];
configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses";
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.mimadrid ];
};
}