prometheus-varnish-exporter: fix build on darwin
This commit is contained in:
parent
8a51989af0
commit
47e436793b
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, varnish }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, makeWrapper, varnish, Security }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "prometheus_varnish_exporter";
|
||||
@ -15,6 +15,8 @@ buildGoModule rec {
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/prometheus_varnish_exporter \
|
||||
--prefix PATH : "${varnish}/bin"
|
||||
@ -22,10 +24,10 @@ buildGoModule rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/jonnenauha/prometheus_varnish_exporter";
|
||||
description = "Varnish exporter for Prometheus";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ MostAwesomeDude willibutz ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ MostAwesomeDude willibutz ];
|
||||
};
|
||||
}
|
||||
|
@ -16042,6 +16042,7 @@ in
|
||||
# Version 1.5.1 fails to build with go 1.13 due to test failure
|
||||
# FAIL github.com/jonnenauha/prometheus_varnish_exporter 0.041s
|
||||
buildGoModule = buildGo112Module;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { };
|
||||
prometheus-wireguard-exporter = callPackage ../servers/monitoring/prometheus/wireguard-exporter.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user