1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00

samtools: fix up

This commit is contained in:
Orivej Desh 2017-10-01 07:30:56 +00:00
parent 0acf94bb9f
commit 09a5396982

View file

@ -3,29 +3,28 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "samtools"; pname = "samtools";
major = "1.6"; version = "1.6";
version = "${major}.0";
src = fetchurl { 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"; sha256 = "17p4vdj2j2qr3b2c0v4100h6cg4jj3zrb4dmdnd9d9aqs74d4p7f";
}; };
buildInputs = [ zlib ncurses ]; nativeBuildInputs = [ perl ];
propagatedBuildInputs = [ htslib ]; buildInputs = [ zlib ncurses htslib ];
configureFlags = [ "--with-htslib=${htslib}" ] configureFlags = [ "--with-htslib=${htslib}" ]
++ stdenv.lib.optional (ncurses == null) "--without-curses"; ++ stdenv.lib.optional (ncurses == null) "--without-curses";
preCheck = ''
patchShebangs test/
'';
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; doCheck = true;
preCheck = ''
sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' test/test.pl
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Tools for manipulating SAM/BAM/CRAM format"; description = "Tools for manipulating SAM/BAM/CRAM format";
license = licenses.mit; license = licenses.mit;