depot/third_party/nixpkgs/pkgs/applications/science/biology/sambamba/default.nix
Default email 07d6a74cbb Project import generated by Copybara.
GitOrigin-RevId: f5e8bdd07d1afaabf6b37afc5497b1e498b8046f
2021-03-19 18:17:44 +01:00

31 lines
807 B
Nix

{ lib, stdenv, fetchFromGitHub, python3, which, ldc, zlib }:
stdenv.mkDerivation rec {
pname = "sambamba";
version = "0.8.0";
src = fetchFromGitHub {
owner = "biod";
repo = "sambamba";
rev = "v${version}";
sha256 = "sha256:0kx5a0fmvv9ldz2hnh7qavgf7711kqc73zxf51k4cca4hr58zxr9";
fetchSubmodules = true;
};
nativeBuildInputs = [ which python3 ldc ];
buildInputs = [ zlib ];
# Upstream's install target is broken; copy manually
installPhase = ''
mkdir -p $out/bin
cp bin/sambamba-${version} $out/bin/sambamba
'';
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;
};
}