nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildGoModule, fetchFromGitHub, lib }:
2buildGoModule rec {
3 pname = "prometheus-packet-sd";
4 version = "0.0.3";
5
6 src = fetchFromGitHub {
7 owner = "packethost";
8 repo = "prometheus-packet-sd";
9 rev = "v${version}";
10 sha256 = "sha256-2k8AsmyhQNNZCzpVt6JdgvI8IFb5pRi4ic6Yn2NqHMM=";
11 };
12
13 vendorSha256 = null;
14
15 subPackages = [ "." ];
16
17 meta = with lib; {
18 description = "Prometheus service discovery for Equinix Metal";
19 homepage = "https://github.com/packethost/prometheus-packet-sd";
20 license = licenses.asl20;
21 platforms = platforms.unix;
22 maintainers = [ maintainers.andir ];
23 };
24}