gojo: cleaning (#408300)
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "gojo";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "itchyny";
|
||||
repo = "gojo";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-DMFTB5CgJTWf+P9ntgBgzdmcF2qjS9t3iUQ1Rer+Ab4=";
|
||||
};
|
||||
|
||||
@@ -23,6 +23,10 @@ buildGoModule rec {
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = "-v";
|
||||
postInstallCheck = ''
|
||||
$out/bin/gojo --help > /dev/null
|
||||
seq 1 10 | $out/bin/gojo -a | grep '^\[1,2,3,4,5,6,7,8,9,10\]$' > /dev/null
|
||||
'';
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
@@ -30,9 +34,9 @@ buildGoModule rec {
|
||||
meta = {
|
||||
description = "Yet another Go implementation of jo";
|
||||
homepage = "https://github.com/itchyny/gojo";
|
||||
changelog = "https://github.com/itchyny/gojo/releases/tag/v${version}";
|
||||
changelog = "https://github.com/itchyny/gojo/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
|
||||
mainProgram = "gojo";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user