blob: e1722a7086d8e90282f4fce8595ff7e6f16a9322 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib
, stdenv
, fetchFromGitHub
, python3
, which
, ldc
, zlib
, lz4
}:
stdenv.mkDerivation rec {
pname = "sambamba";
version = "1.0.1";
src = fetchFromGitHub {
owner = "biod";
repo = "sambamba";
rev = "v${version}";
sha256 = "sha256-3O9bHGpMuCgdR2Wm7Dv1VUjMT1QTn8K1hdwgjvwhFDw=";
fetchSubmodules = true;
};
nativeBuildInputs = [ which python3 ldc ];
buildInputs = [ zlib lz4 ];
buildFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
# Upstream's install target is broken; copy manually
installPhase = ''
runHook preInstall
install -Dm755 bin/sambamba-${version} $out/bin/sambamba
runHook postInstall
'';
meta = with lib; {
description = "SAM/BAM processing tool";
homepage = "https://lomereiter.github.io/sambamba/";
maintainers = with maintainers; [ jbedo ];
license = with licenses; gpl2;
platforms = platforms.x86_64;
};
}
|