tcat: Add updateScript, convert to finalAttrs, drop with lib.maintainers

This commit is contained in:
Manuel Mendez
2026-02-03 12:48:04 -05:00
parent d2ffd02e0a
commit 23731c854b
+9 -4
View File
@@ -2,25 +2,30 @@
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "tcat";
version = "1.0.0";
src = fetchFromGitHub {
owner = "rsc";
repo = "tcat";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "1szzfz5xsx9l8gjikfncgp86hydzpvsi0y5zvikd621xkp7g7l21";
};
vendorHash = null;
subPackages = ".";
passthru.updateScript = nix-update-script { };
meta = {
description = "Table cat";
homepage = "https://github.com/rsc/tcat";
maintainers = with lib.maintainers; [ mmlb ];
maintainers = [
lib.maintainers.mmlb
];
license = lib.licenses.bsd3;
mainProgram = "tcat";
};
}
})