2022-01-23 03:51:46 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, which
|
|
|
|
, ldc
|
|
|
|
, zlib
|
|
|
|
, lz4
|
|
|
|
}:
|
2019-12-17 21:54:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sambamba";
|
2022-01-23 03:51:46 +00:00
|
|
|
version = "0.8.2";
|
2019-12-17 21:54:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "biod";
|
|
|
|
repo = "sambamba";
|
|
|
|
rev = "v${version}";
|
2022-01-23 03:51:46 +00:00
|
|
|
sha256 = "sha256-FEa9QjQoGNUOAtMNMZcqpTKMKVtXoBuOomTy0mpos/0=";
|
2019-12-17 21:54:44 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-03-06 15:50:27 +00:00
|
|
|
nativeBuildInputs = [ which python3 ldc ];
|
2022-01-23 03:51:46 +00:00
|
|
|
buildInputs = [ zlib lz4 ];
|
2019-12-17 21:54:44 +00:00
|
|
|
|
|
|
|
# Upstream's install target is broken; copy manually
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/sambamba-${version} $out/bin/sambamba
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-17 21:54:44 +00:00
|
|
|
description = "SAM/BAM processing tool";
|
|
|
|
homepage = "https://lomereiter.github.io/sambamba/";
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
license = with licenses; gpl2;
|
|
|
|
platforms = platforms.x86_64;
|
|
|
|
};
|
|
|
|
}
|