gojo: cleaning (#408300)

authored by Peder Bergebakken Sundt and committed by GitHub d7277505 f5bd03ec

+8 -4
+8 -4
pkgs/by-name/go/gojo/package.nix
··· 6 6 nix-update-script, 7 7 }: 8 8 9 - buildGoModule rec { 9 + buildGoModule (finalAttrs: { 10 10 pname = "gojo"; 11 11 version = "0.3.2"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "itchyny"; 15 15 repo = "gojo"; 16 - tag = "v${version}"; 16 + tag = "v${finalAttrs.version}"; 17 17 hash = "sha256-DMFTB5CgJTWf+P9ntgBgzdmcF2qjS9t3iUQ1Rer+Ab4="; 18 18 }; 19 19 ··· 23 23 versionCheckHook 24 24 ]; 25 25 versionCheckProgramArg = "-v"; 26 + postInstallCheck = '' 27 + $out/bin/gojo --help > /dev/null 28 + seq 1 10 | $out/bin/gojo -a | grep '^\[1,2,3,4,5,6,7,8,9,10\]$' > /dev/null 29 + ''; 26 30 doInstallCheck = true; 27 31 28 32 passthru.updateScript = nix-update-script { }; ··· 30 34 meta = { 31 35 description = "Yet another Go implementation of jo"; 32 36 homepage = "https://github.com/itchyny/gojo"; 33 - changelog = "https://github.com/itchyny/gojo/releases/tag/v${version}"; 37 + changelog = "https://github.com/itchyny/gojo/releases/tag/v${finalAttrs.version}"; 34 38 license = lib.licenses.mit; 35 39 maintainers = with lib.maintainers; [ xiaoxiangmoe ]; 36 40 mainProgram = "gojo"; 37 41 }; 38 - } 42 + })