Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters