3
0
Fork 0
forked from mirrors/nixpkgs

prometheus-json-exporter: add patch to support bool parsing

This commit is contained in:
WilliButz 2018-08-21 01:42:18 +02:00 committed by Robin Gloster
parent b712736283
commit b59cd2bc17

View file

@ -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;