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