mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
samtools: 1.5.0 -> 1.6.0
This commit is contained in:
parent
25b17ae1d7
commit
ee2c76693e
@ -1,21 +1,31 @@
|
||||
{ stdenv, fetchurl, zlib, htslib, ncurses ? null }:
|
||||
{ stdenv, fetchurl, zlib, htslib, perl, ncurses ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "samtools";
|
||||
major = "1.5";
|
||||
major = "1.6";
|
||||
version = "${major}.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
|
||||
sha256 = "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5";
|
||||
sha256 = "17p4vdj2j2qr3b2c0v4100h6cg4jj3zrb4dmdnd9d9aqs74d4p7f";
|
||||
};
|
||||
|
||||
buildInputs = [ zlib ncurses ];
|
||||
|
||||
propagatedBuildInputs = [ htslib ];
|
||||
|
||||
configureFlags = [ "--with-htslib=${htslib}" ]
|
||||
++ stdenv.lib.optional (ncurses == null) "--without-curses";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' test/test.pl
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools for manipulating SAM/BAM/CRAM format";
|
||||
license = licenses.mit;
|
||||
|
Loading…
Reference in New Issue
Block a user