9af7602b8a
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools -h` got 0 exit code - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools --help` got 0 exit code - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools help` got 0 exit code - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools -v` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools --version` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools version` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools -h` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools --help` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/bcftools help` and found version 1.7 - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/plot-vcfstats -h` got 0 exit code - ran `/nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7/bin/plot-vcfstats --help` got 0 exit code - found 1.7 with grep in /nix/store/5yasri83ahcvhx06dv92fpzmxay9c833-bcftools-1.7
41 lines
980 B
Nix
41 lines
980 B
Nix
{ stdenv, fetchurl, htslib, zlib, bzip2, lzma, curl, perl, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "bcftools";
|
|
version = "1.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/samtools/bcftools/releases/download/${version}/${name}.tar.bz2";
|
|
sha256 = "1l82sgw86l1626b7kxv3h0696lbj7317bb48rvqb1zqd3gcn6kyx";
|
|
};
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
buildInputs = [ htslib zlib bzip2 lzma curl ];
|
|
|
|
makeFlags = [
|
|
"HSTDIR=${htslib}"
|
|
"prefix=$(out)"
|
|
"CC=cc"
|
|
];
|
|
|
|
preCheck = ''
|
|
patchShebangs misc/
|
|
patchShebangs test/
|
|
sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tools for manipulating BCF2/VCF/gVCF format, SNP and short indel sequence variants";
|
|
license = licenses.mit;
|
|
homepage = http://www.htslib.org/;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.mimadrid ];
|
|
};
|
|
}
|