matchbox-server: fix version

This commit is contained in:
chillcicada
2025-12-06 16:21:24 +08:00
parent 1321a23cd3
commit 21a1d7394b
+11 -8
View File
@@ -2,16 +2,17 @@
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "matchbox-server";
version = "v0.11.0";
version = "0.11.0";
src = fetchFromGitHub {
owner = "poseidon";
repo = "matchbox";
rev = "${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-u1VY+zEx2YToz+WxVFaUDzY7HM9OeokbR/FmzcR3UJ8=";
};
@@ -24,7 +25,7 @@ buildGoModule rec {
# Go linker flags (go tool link)
# Omit symbol tables and debug info
ldflags = [
"-w -s -X github.com/poseidon/matchbox/matchbox/version.Version=${version}"
"-w -s -X github.com/poseidon/matchbox/matchbox/version.Version=${finalAttrs.version}"
];
# Disable cgo to produce a static binary
@@ -33,12 +34,14 @@ buildGoModule rec {
# Don't run Go tests
doCheck = false;
meta = with lib; {
passthru.updateScript = nix-update-script { };
meta = {
description = "Server to network boot and provision Fedora CoreOS and Flatcar Linux clusters";
homepage = "https://matchbox.psdn.io/";
changelog = "https://github.com/poseidon/matchbox/blob/main/CHANGES.md";
license = licenses.asl20;
maintainers = with maintainers; [ dghubble ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dghubble ];
mainProgram = "matchbox";
};
}
})