depot/third_party/nixpkgs/pkgs/by-name/mo/mosdepth/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

34 lines
819 B
Nix

{ lib, buildNimPackage, fetchFromGitHub, pcre, testers }:
buildNimPackage (finalAttrs: {
pname = "mosdepth";
version = "0.3.8";
requiredNimVersion = 1;
src = fetchFromGitHub {
owner = "brentp";
repo = "mosdepth";
rev = "v${finalAttrs.version}";
sha256 = "sha256-IkCLlIugnOO2LpS79gakURvPR1ZuayFtrOOoPyNKLMQ=";
};
lockFile = ./lock.json;
buildInputs = [ pcre ];
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = with lib; {
description = "fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing";
mainProgram = "mosdepth";
license = licenses.mit;
homepage = "https://github.com/brentp/mosdepth";
maintainers = with maintainers; [ jbedo ];
platforms = platforms.linux;
};
})