sambamba: Upgrade to 0.6.7 and compile with upstream ldc

Fixes new compilation issues with tupple operator being dropped
This commit is contained in:
Tyson Whitehead
2018-06-27 14:19:23 -04:00
parent c72ea282b4
commit bcbb1ef4fb
4 changed files with 50 additions and 130 deletions

49
pkgs/sambamba.nix Normal file
View File

@@ -0,0 +1,49 @@
{ stdenv, fetchFromGitHub, ldc
, bash, python, glibc, which, rdmd, zlib }:
stdenv.mkDerivation rec {
version = "0.6.7";
name = "sambamba-${version}";
src = fetchFromGitHub {
owner = "lomereiter";
repo = "sambamba";
rev = "v${version}";
sha256 = "06fj6ayr57xcpinmsdmczfay13bbmq2f6zlvknzz9yhgsdkny9w3";
fetchSubmodules = true;
};
postPatch = ''
patchShebangs .
sed -i '1s,$, undeaD/src/undead/utf.d,' *.rsp
'';
buildPhase = ''
make sambamba-ldmd2-64
'';
installPhase = ''
mkdir -p $out/bin
mv build/sambamba $out/bin
mv build/sambamba.debug $out/bin
'';
buildInputs = [
bash
python
glibc
ldc
which
rdmd
zlib
];
meta = with stdenv.lib; {
homepage = https://github.com/lomereiter/sambamba/wiki;
description = "Sambamba is a set of command-line tools for working with SAM/BAM file formats which are used for storing next generation sequencing (NGS) datasets.";
platforms = platforms.all;
license = licenses.gpl2;
};
enableParallelBuilding = true;
}