Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 850 B view raw
1{ 2 lib, 3 buildNimPackage, 4 fetchFromGitHub, 5 versionCheckHook, 6}: 7 8buildNimPackage (finalAttrs: { 9 pname = "mosdepth"; 10 version = "0.3.11"; 11 12 requiredNimVersion = 1; 13 14 src = fetchFromGitHub { 15 owner = "brentp"; 16 repo = "mosdepth"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-EzzDuzPAyNkL2tFWre86U+kx3SvLPbWto2/vfLdwHGI="; 19 }; 20 21 lockFile = ./lock.json; 22 23 nativeBuildInputs = [ versionCheckHook ]; 24 25 nimFlags = [ ''--passC:"-Wno-incompatible-pointer-types"'' ]; 26 27 doInstallCheck = true; 28 29 meta = with lib; { 30 description = "Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing"; 31 mainProgram = "mosdepth"; 32 license = licenses.mit; 33 homepage = "https://github.com/brentp/mosdepth"; 34 maintainers = with maintainers; [ 35 jbedo 36 ehmry 37 ]; 38 platforms = platforms.linux; 39 }; 40})