git.iko.soy/typeable/nixpkgs
on master help sign in
bcftools: fix up
commitd73bd7f50ab09ad511851f9b2ee812cc17136edf authorOrivej Desh <orivej@gmx.fr> dateSun 1 Oct 2017, 07:31 (9 years ago) parent09a5396
1 file changed+11−14
pkgs/applications/science/biology/bcftools/default.nix+11−14
pkgs/applications/science/biology/bcftools/default.nix+11−14
@@ -1,22 +1,18 @@
1−{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, perl, bash }:
1+{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, bash }:
22
33stdenv.mkDerivation rec {
44 name = "${pname}-${version}";
55 pname = "bcftools";
6− major = "1.6";
7− version = "${major}.0";
6+ version = "1.6";
87
98 src = fetchurl {
10− url = "https://github.com/samtools/bcftools/releases/download/${major}/bcftools-${major}.tar.bz2";
9+ url = "https://github.com/samtools/bcftools/releases/download/${version}/${name}.tar.bz2";
1110 sha256 = "10prgmf09a13mk18840938ijqgfc9y92hfc7sa2gcv07ddri0c19";
1211 };
1312
13+ nativeBuildInputs = [ perl ];
1414
15− nativeBuildInputs = [ bash ];
16−
17− buildInputs = [ zlib bzip2 lzma ];
18−
19− propagatedBuildInputs = [ htslib ];
15+ buildInputs = [ htslib zlib bzip2 lzma curl ];
2016
2117 makeFlags = [
2218 "HSTDIR=${htslib}"
@@ -24,15 +20,16 @@ stdenv.mkDerivation rec {
2420 "CC=cc"
2521 ];
2622
27− enableParallelBuilding = true;
28−
29− doCheck = true;
30−
3123 preCheck = ''
32− sed -ie 's|/usr/bin/\(env[[:space:]]\)\{0,1\}perl|${perl}/bin/perl|' test/test.pl test/csq/{sort-csq,make-csq-test} misc/plot-vcfstats
24+ patchShebangs misc/
25+ patchShebangs test/
3326 sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
3427 '';
3528
29+ enableParallelBuilding = true;
30+
31+ doCheck = true;
32+
3633 meta = with stdenv.lib; {
3734 description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
3835 license = licenses.mit;