gofumpt: add updateScript, version test, changelog

This commit is contained in:
Paul Meyer
2023-12-14 15:26:34 +01:00
parent 4016a8de10
commit 9eaf29c2b8
+16 -1
View File
@@ -1,4 +1,10 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
, testVersion
, gofumpt
}:
buildGoModule rec {
pname = "gofumpt";
@@ -22,9 +28,18 @@ buildGoModule rec {
"-skip=^TestScript/diagnose$"
];
passthru = {
updateScript = nix-update-script { };
tests.version = testVersion {
package = gofumpt;
version = "v${version}";
};
};
meta = with lib; {
description = "A stricter gofmt";
homepage = "https://github.com/mvdan/gofumpt";
changelog = "https://github.com/mvdan/gofumpt/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ rvolosatovs ];
mainProgram = "gofumpt";