about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ma/matchbox-server/package.nix
blob: 4f7ca8bdc9122433db1f92d719ebd8c9b32801aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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";
  };
}