soft-serve: use finalAttrs

This commit is contained in:
Harinn
2026-03-28 14:36:05 +07:00
parent 08914feb42
commit c112491d11
+6 -9
View File
@@ -8,17 +8,14 @@
bash,
}:
let
version = "0.11.6";
in
buildGoModule {
buildGoModule (finalAttrs: {
pname = "soft-serve";
inherit version;
version = "0.11.6";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "soft-serve";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-oWZfhB14Yjj3/BKKhowKDKX5v4RvIwjHDCSFfnI+f54=";
};
@@ -29,7 +26,7 @@ buildGoModule {
ldflags = [
"-s"
"-w"
"-X=main.Version=${version}"
"-X=main.Version=${finalAttrs.version}"
];
nativeBuildInputs = [ makeWrapper ];
@@ -51,9 +48,9 @@ buildGoModule {
meta = {
description = "Tasty, self-hosted Git server for the command line";
homepage = "https://github.com/charmbracelet/soft-serve";
changelog = "https://github.com/charmbracelet/soft-serve/releases/tag/v${version}";
changelog = "https://github.com/charmbracelet/soft-serve/releases/tag/v${finalAttrs.version}";
mainProgram = "soft";
license = lib.licenses.mit;
maintainers = [ ];
};
}
})