From 2bfa21205afc1cf75271b4bcf32bb209b6e19bff Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sat, 21 Nov 2020 15:54:30 +0100 Subject: [PATCH] packet-sd: init at 0.0.3 This is currently being used as part of the NixOS.org infrastructure [1] and should probably be included here and not just "downstream" (in the nixops configs). [1] https://github.com/NixOS/nixos-org-configurations/blob/26105e7afac604d3e02f68e3985830dce21c405d/delft/prometheus/packet-sd.nix --- pkgs/development/tools/packet-sd/default.nix | 24 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/packet-sd/default.nix diff --git a/pkgs/development/tools/packet-sd/default.nix b/pkgs/development/tools/packet-sd/default.nix new file mode 100644 index 000000000000..33d61eca718a --- /dev/null +++ b/pkgs/development/tools/packet-sd/default.nix @@ -0,0 +1,24 @@ +{ buildGoModule, fetchFromGitHub, lib }: +buildGoModule rec { + pname = "prometheus-packet-sd"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "packethost"; + repo = "prometheus-packet-sd"; + rev = "v${version}"; + sha256 = "sha256-2k8AsmyhQNNZCzpVt6JdgvI8IFb5pRi4ic6Yn2NqHMM="; + }; + + vendorSha256 = null; + + subPackages = [ "." ]; + + meta = with lib; { + description = "Prometheus service discovery for Equinix Metal"; + homepage = "https://github.com/packethost/prometheus-packet-sd"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.andir ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9dfa61291ae..e73e0dd05b5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22978,6 +22978,8 @@ julia_15 = callPackage ../development/compilers/julia/1.5.nix { packet = callPackage ../development/tools/packet { }; + packet-sd = callPackage ../development/tools/packet-sd { }; + packet-cli = callPackage ../development/tools/packet-cli { }; pb_cli = callPackage ../tools/misc/pb_cli {};