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:
49
pkgs/sambamba.nix
Normal file
49
pkgs/sambamba.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user