samtools: 1.3.1 -> 1.4

This commit is contained in:
mimadrid 2017-05-07 22:31:14 +02:00
parent 295a23a2db
commit 9073e67568
No known key found for this signature in database
GPG Key ID: 4D0F6894D41C6957

View File

@ -3,14 +3,15 @@
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "samtools";
version = "1.3.1";
major = "1.4";
version = "${major}.0";
src = fetchurl {
url = "https://github.com/samtools/${pname}/releases/download/${version}/${name}.tar.bz2";
sha256 = "0znnnxc467jbf1as2dpskrjhfh8mbll760j6w6rdkwlwbqsp8gbc";
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
sha256 = "1x73c0lxvd58ghrmaqqyp56z7bkmp28a71fk4ap82j976pw5pbls";
};
buildInputs = [ zlib ncurses htslib ];
buildInputs = [ zlib ncurses ];
configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses";