glance: use finalAttrs pattern

This commit is contained in:
Defelo
2025-03-17 17:22:25 +01:00
parent 5f16d7d250
commit e7fe9fdb0a
+5 -5
View File
@@ -6,14 +6,14 @@
nixosTests,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "glance";
version = "0.7.7";
src = fetchFromGitHub {
owner = "glanceapp";
repo = "glance";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-HFF1qiruz1SM9+g3xOKawuGmLzdYUUt3DnMRwjobVN4=";
};
@@ -22,7 +22,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X github.com/glanceapp/glance/internal/glance.buildVersion=${version}"
"-X github.com/glanceapp/glance/internal/glance.buildVersion=${finalAttrs.version}"
];
excludedPackages = [ "scripts/build-and-ship" ];
@@ -36,7 +36,7 @@ buildGoModule rec {
meta = {
homepage = "https://github.com/glanceapp/glance";
changelog = "https://github.com/glanceapp/glance/releases/tag/v${version}";
changelog = "https://github.com/glanceapp/glance/releases/tag/v${finalAttrs.version}";
description = "Self-hosted dashboard that puts all your feeds in one place";
mainProgram = "glance";
license = lib.licenses.agpl3Only;
@@ -45,4 +45,4 @@ buildGoModule rec {
defelo
];
};
}
})