From b59cd2bc175015bd770c6ed3665acbd8dac9e82d Mon Sep 17 00:00:00 2001 From: WilliButz Date: Tue, 21 Aug 2018 01:42:18 +0200 Subject: prometheus-json-exporter: add patch to support bool parsing --- pkgs/servers/monitoring/prometheus/json-exporter.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/servers/monitoring/prometheus/json-exporter.nix') diff --git a/pkgs/servers/monitoring/prometheus/json-exporter.nix b/pkgs/servers/monitoring/prometheus/json-exporter.nix index ef022fc308ce..aeb7b7445a5d 100644 --- a/pkgs/servers/monitoring/prometheus/json-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/json-exporter.nix @@ -1,5 +1,5 @@ # This file was generated by go2nix. -{ buildGoPackage, fetchFromGitHub, lib }: +{ buildGoPackage, fetchFromGitHub, fetchpatch, lib }: buildGoPackage rec { name = "prometheus-json-exporter-${version}"; @@ -16,6 +16,11 @@ buildGoPackage rec { goDeps = ./json-exporter_deps.nix; + patches = [(fetchpatch { # adds bool support + url = "https://patch-diff.githubusercontent.com/raw/kawamuray/prometheus-json-exporter/pull/17.patch"; + sha256 = "0mc5axhd2bykci41dgswl4r1552d70jsmb17lbih7czhsy6rgmrm"; + })]; + meta = with lib; { description = "A prometheus exporter which scrapes remote JSON by JSONPath"; homepage = https://github.com/kawamuray/prometheus-json-exporter; -- cgit 1.4.1