From dacf3de5aa5e5a9de6385d400db8bf89baa89b86 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 24 Mar 2024 00:26:21 -0700 Subject: [PATCH 1/2] maintainers: Add dghubble --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8f0dca78eada..144107f56c0f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4832,6 +4832,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"; From 03344be9865efc998f6e7fa338bfe25687f584d3 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 24 Mar 2024 00:26:47 -0700 Subject: [PATCH 2/2] matchbox-server: init at v0.11.0 Add a Nix `matchbox-server` package for the matchbox project https://github.com/poseidon/matchbox. It provides a server for PXE booting and provisioning machines into clusters and has been maintained for many years Note: A matchbox-window-manager is already using the Nix package name matchbox, so name this new package matchbox-server --- pkgs/by-name/ma/matchbox-server/package.nix | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/ma/matchbox-server/package.nix diff --git a/pkgs/by-name/ma/matchbox-server/package.nix b/pkgs/by-name/ma/matchbox-server/package.nix new file mode 100644 index 000000000000..4f7ca8bdc912 --- /dev/null +++ b/pkgs/by-name/ma/matchbox-server/package.nix @@ -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"; + }; +}