depot/third_party/nixpkgs/pkgs/applications/science/biology/sambamba/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

46 lines
914 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, python3
, which
, ldc
, zlib
, lz4
}:
stdenv.mkDerivation rec {
pname = "sambamba";
version = "1.0.0";
src = fetchFromGitHub {
owner = "biod";
repo = "sambamba";
rev = "v${version}";
sha256 = "sha256-HwAzsbT71Q35Io6H7Hzs4RTatpRpdHqV0cwPYAlsf6c=";
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;
};
}