Files
ccpkgs/pkgs/sambamba.nix
Tyson Whitehead bcbb1ef4fb sambamba: Upgrade to 0.6.7 and compile with upstream ldc
Fixes new compilation issues with tupple operator being dropped
2018-06-27 14:19:23 -04:00

50 lines
1.0 KiB
Nix

{ 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;
}