samtools: fix up
This commit is contained in:
parent
0acf94bb9f
commit
09a5396982
1 changed files with 8 additions and 9 deletions
|
@ -3,29 +3,28 @@
|
|||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "samtools";
|
||||
major = "1.6";
|
||||
version = "${major}.0";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/samtools/samtools/releases/download/${major}/samtools-${major}.tar.bz2";
|
||||
url = "https://github.com/samtools/samtools/releases/download/${version}/${name}.tar.bz2";
|
||||
sha256 = "17p4vdj2j2qr3b2c0v4100h6cg4jj3zrb4dmdnd9d9aqs74d4p7f";
|
||||
};
|
||||
|
||||
buildInputs = [ zlib ncurses ];
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
propagatedBuildInputs = [ htslib ];
|
||||
buildInputs = [ zlib ncurses htslib ];
|
||||
|
||||
configureFlags = [ "--with-htslib=${htslib}" ]
|
||||
++ stdenv.lib.optional (ncurses == null) "--without-curses";
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs test/
|
||||
'';
|
||||
|
||||
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 a new issue