File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments