about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/script-exporter.nix
blob: dae56703ebd61f08f06199d31096c3129be214ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
  pname = "script_exporter";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "adhocteam";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-t/xgRalcHxEcT1peU1ePJUItD02rQdfz1uWpXDBo6C0=";
  };

  vendorHash = "sha256-Hs1SNpC+t1OCcoF3FBgpVGkhR97ulq6zYhi8BQlgfVc=";

  passthru.tests = { inherit (nixosTests.prometheus-exporters) script; };

  meta = with lib; {
    description = "Shell script prometheus exporter";
    mainProgram = "script_exporter";
    homepage = "https://github.com/adhocteam/script_exporter";
    license = licenses.mit;
    maintainers = with maintainers; [ Flakebi ];
    platforms = platforms.linux;
  };
}