41 lines
850 B
Nix
41 lines
850 B
Nix
{
|
|
lib,
|
|
buildNimPackage,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "mosdepth";
|
|
version = "0.3.11";
|
|
|
|
requiredNimVersion = 1;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "brentp";
|
|
repo = "mosdepth";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-EzzDuzPAyNkL2tFWre86U+kx3SvLPbWto2/vfLdwHGI=";
|
|
};
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
nativeBuildInputs = [ versionCheckHook ];
|
|
|
|
nimFlags = [ ''--passC:"-Wno-incompatible-pointer-types"'' ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
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
|
|
ehmry
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|