lol
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "matchbox-server";
9 version = "v0.11.0";
10
11 src = fetchFromGitHub {
12 owner = "poseidon";
13 repo = "matchbox";
14 rev = "${version}";
15 hash = "sha256-u1VY+zEx2YToz+WxVFaUDzY7HM9OeokbR/FmzcR3UJ8=";
16 };
17
18 vendorHash = "sha256-sVC4xeQIcqAbKU4MOAtNicHcioYjdsleQwKWLstnjfk=";
19
20 subPackages = [
21 "cmd/matchbox"
22 ];
23
24 # Go linker flags (go tool link)
25 # Omit symbol tables and debug info
26 ldflags = [
27 "-w -s -X github.com/poseidon/matchbox/matchbox/version.Version=${version}"
28 ];
29
30 # Disable cgo to produce a static binary
31 env.CGO_ENABLED = 0;
32
33 # Don't run Go tests
34 doCheck = false;
35
36 meta = with lib; {
37 description = "Server to network boot and provision Fedora CoreOS and Flatcar Linux clusters";
38 homepage = "https://matchbox.psdn.io/";
39 changelog = "https://github.com/poseidon/matchbox/blob/main/CHANGES.md";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ dghubble ];
42 mainProgram = "matchbox";
43 };
44}