nixpkgs/pkgs/by-name/jd/jdd/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
883 B
Nix
Raw Permalink Normal View History

2025-07-01 03:31:31 -05:00
{
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
2025-07-01 03:31:31 -05:00
pname = "jdd";
2025-08-06 01:36:32 +00:00
version = "0.4.5";
2025-07-01 03:31:31 -05:00
src = fetchFromGitHub {
owner = "mahyarmirrashed";
repo = "jdd";
tag = "v${finalAttrs.version}";
2025-08-06 01:36:32 +00:00
hash = "sha256-3keJrKbR3+J3z22W8Xoabz9YhvjRRBBMo59l/eJo7Hs=";
2025-07-01 03:31:31 -05:00
};
2025-07-27 04:48:48 +00:00
vendorHash = "sha256-KEg5X2wHx7KPHEL1zJd/DeDnR69FyB6pajpHIYdep2k=";
2025-07-01 03:31:31 -05:00
ldflags = [ "-X=main.version=${finalAttrs.version}" ];
2025-07-01 03:31:31 -05:00
doInstallCheck = true;
2025-07-01 03:31:31 -05:00
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Johnny Decimal daemon for automatically organizing files into the correct drawer using their filename";
homepage = "https://github.com/mahyarmirrashed/jdd";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mahyarmirrashed ];
mainProgram = "jdd";
};
})