nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 htslib, 7 zlib, 8 bzip2, 9 xz, 10 curl, 11 openssl, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "angsd"; 16 version = "0.940"; 17 18 src = fetchFromGitHub { 19 owner = "ANGSD"; 20 repo = "angsd"; 21 sha256 = "sha256-Ppxgy54pAnqJUzNX5c12NHjKTQyEEcPSpCEEVOyZ/LA="; 22 tag = finalAttrs.version; 23 }; 24 25 patches = [ 26 # Pull pending inclusion upstream patch for parallel buil fixes: 27 # https://github.com/ANGSD/angsd/pull/590 28 (fetchpatch { 29 name = "parallel-make.patch"; 30 url = "https://github.com/ANGSD/angsd/commit/89fd1d898078016df390e07e25b8a3eeadcedf43.patch"; 31 hash = "sha256-KQgUfr3v8xc+opAm4qcSV2eaupztv4gzJJHyzJBCxqA="; 32 }) 33 ]; 34 35 buildInputs = [ 36 htslib 37 zlib 38 bzip2 39 xz 40 curl 41 openssl 42 ]; 43 44 enableParallelBuilding = true; 45 46 makeFlags = [ 47 "HTSSRC=systemwide" 48 "prefix=$(out)" 49 ]; 50 51 meta = { 52 description = "Program for analysing NGS data"; 53 homepage = "http://www.popgen.dk/angsd"; 54 maintainers = [ lib.maintainers.bzizou ]; 55 license = lib.licenses.gpl2; 56 }; 57})