diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/systemd-exporter.nix')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/systemd-exporter.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/prometheus/systemd-exporter.nix b/pkgs/servers/monitoring/prometheus/systemd-exporter.nix index e0f93332547..767f6ebd61d 100644 --- a/pkgs/servers/monitoring/prometheus/systemd-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/systemd-exporter.nix @@ -7,17 +7,27 @@ buildGoModule rec { vendorHash = "sha256-XkwBhj2M1poirPkWzS71NbRTshc8dTKwaHoDfFxpykU="; src = fetchFromGitHub { - owner = "povilasv"; + owner = "prometheus-community"; repo = pname; rev = "v${version}"; sha256 = "sha256-q6rnD8JCtB1zTkUfZt6f2Uyo91uFi3HYI7WFlZdzpBM="; }; + ldflags = [ + "-s" + "-w" + "-X github.com/prometheus/common/version.Version=${version}" + "-X github.com/prometheus/common/version.Revision=unknown" + "-X github.com/prometheus/common/version.Branch=unknown" + "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs" + "-X github.com/prometheus/common/version.BuildDate=unknown" + ]; + passthru.tests = { inherit (nixosTests.prometheus-exporters) systemd; }; meta = with lib; { description = "Exporter for systemd unit metrics"; - homepage = "https://github.com/povilasv/systemd_exporter"; + homepage = "https://github.com/prometheus-community/systemd_exporter"; license = licenses.asl20; maintainers = with maintainers; [ chkno ]; }; |