Merge pull request #298689 from dghubble/add-matchbox

Add matchbox-server package
This commit is contained in:
Ryan Lahfa 2024-03-26 01:27:16 -07:00 committed by GitHub
commit 756377102b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 49 additions and 0 deletions

View File

@ -4838,6 +4838,12 @@
githubId = 4708206;
name = "Daniel Fox Franke";
};
dghubble = {
email = "dghubble@gmail.com";
github = "dghubble";
githubId = 2253428;
name = "Dalton Hubble";
};
dgliwka = {
email = "dawid.gliwka@gmail.com";
github = "dgliwka";

View File

@ -0,0 +1,43 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "matchbox-server";
version = "v0.11.0";
src = fetchFromGitHub {
owner = "poseidon";
repo = "matchbox";
rev = "${version}";
hash = "sha256-u1VY+zEx2YToz+WxVFaUDzY7HM9OeokbR/FmzcR3UJ8=";
};
vendorHash = "sha256-sVC4xeQIcqAbKU4MOAtNicHcioYjdsleQwKWLstnjfk=";
subPackages = [
"cmd/matchbox"
];
# Go linker flags (go tool link)
# Omit symbol tables and debug info
ldflags = [
"-w -s -X github.com/poseidon/matchbox/matchbox/version.Version=${version}"
];
# Disable cgo to produce a static binary
CGO_ENABLED = 0;
# Don't run Go tests
doCheck = false;
meta = with lib; {
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 ];
mainProgram = "matchbox";
};
}