htslib: 1.5.0 -> 1.6.0

This commit is contained in:
mimadrid 2017-09-30 19:43:19 +02:00
parent 1df6cf5d1d
commit 25b17ae1d7
No known key found for this signature in database
GPG Key ID: 4D0F6894D41C6957

View File

@ -1,22 +1,32 @@
{ stdenv, fetchurl, zlib, bzip2, lzma, curl }:
{ stdenv, fetchurl, zlib, bzip2, lzma, curl, perl }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "${major}.0";
pname = "htslib";
major = "1.5";
major = "1.6";
src = fetchurl {
url = "https://github.com/samtools/htslib/releases/download/${major}/htslib-${major}.tar.bz2";
sha256 = "0bcjmnbwp2bib1z1bkrp95w9v2syzdwdfqww10mkb1hxlmg52ax0";
sha256 = "1jsca3hg4rbr6iqq6imkj4lsvgl8g9768bcmny3hlff2w25vx24m";
};
propagatedNativeBuildInputs = [ perl ];
buildInputs = [ zlib bzip2 lzma curl ];
configureFlags = "--enable-libcurl"; # optional but strongly recommended
installFlags = "prefix=$(out)";
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
find test -name "*.pl" -exec sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' {} +
'';
meta = with stdenv.lib; {
description = "A C library for reading/writing high-throughput sequencing data";
license = licenses.mit;