diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-03-26 01:27:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 01:27:16 -0700 |
commit | 756377102b367156c5a515d02dd51d4e8af33e16 (patch) | |
tree | 5f10f654532bdb8dc1e745dd97fb6cfacaf03032 | |
parent | 0c2e34ad2c2dd1a00e3cd2960ebaaf8af3031573 (diff) | |
parent | 03344be9865efc998f6e7fa338bfe25687f584d3 (diff) |
Merge pull request #298689 from dghubble/add-matchbox
Add matchbox-server package
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ma/matchbox-server/package.nix | 43 |
2 files changed, 49 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index cb0c74d86dc20..9b7fe63c2829f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; 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 0000000000000..4f7ca8bdc9122 --- /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"; + }; +} |