skeema: use finalAttrs

This commit is contained in:
Aaron Jheng
2025-06-01 15:32:49 +08:00
parent 0d0bc640d3
commit dfaf6ef233
+4 -5
View File
@@ -4,17 +4,16 @@
fetchFromGitHub,
coreutils,
testers,
skeema,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "skeema";
version = "1.12.3";
src = fetchFromGitHub {
owner = "skeema";
repo = "skeema";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-3sxUy/TkacuRN8UDGgrvkdUQi//6VufoYoVFN1+X3BM=";
};
@@ -58,7 +57,7 @@ buildGoModule rec {
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
passthru.tests.version = testers.testVersion {
package = skeema;
package = finalAttrs.finalPackage;
};
meta = {
@@ -68,4 +67,4 @@ buildGoModule rec {
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "skeema";
};
}
})