Skip to content

Commit 2592a2f

Browse files
authored
gojo: init at 0.3.2 (#378200)
1 parent 5e8feba commit 2592a2f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pkgs/by-name/go/gojo/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
nix-update-script,
7+
}:
8+
9+
buildGoModule rec {
10+
pname = "gojo";
11+
version = "0.3.2";
12+
13+
src = fetchFromGitHub {
14+
owner = "itchyny";
15+
repo = "gojo";
16+
tag = "v${version}";
17+
hash = "sha256-DMFTB5CgJTWf+P9ntgBgzdmcF2qjS9t3iUQ1Rer+Ab4=";
18+
};
19+
20+
vendorHash = "sha256-iVAPuc+83WZCs5WAAZIKEExDdwXQqswgso2XRVJB/bE=";
21+
22+
nativeInstallCheckInputs = [
23+
versionCheckHook
24+
];
25+
versionCheckProgramArg = [ "-v" ];
26+
doInstallCheck = true;
27+
28+
passthru.updateScript = nix-update-script { };
29+
30+
meta = {
31+
description = "Yet another Go implementation of jo";
32+
homepage = "https://github.com/itchyny/gojo";
33+
changelog = "https://github.com/itchyny/gojo/releases/tag/v${version}";
34+
license = lib.licenses.mit;
35+
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
36+
mainProgram = "gojo";
37+
};
38+
}

0 commit comments

Comments
 (0)