diff --git a/pkgs/by-name/ma/matchbox-server/package.nix b/pkgs/by-name/ma/matchbox-server/package.nix index 4967fef7851b..e668de8c8ead 100644 --- a/pkgs/by-name/ma/matchbox-server/package.nix +++ b/pkgs/by-name/ma/matchbox-server/package.nix @@ -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"; }; -} +})