summaryrefslogtreecommitdiff
path: root/nixos/shared/prometheus-sql-exporter/default.nix
blob: 81f16609f6c83dbe704d3398fb9392b42faf655f (plain)
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,
}:

buildGoModule rec {
  pname = "sql_exporter";
  version = "0.17.1";

  src = fetchFromGitHub {
    owner = "burningalchemist";
    repo = pname;
    rev = version;
    sha256 = "sha256-AEPFXPplHtny1P3gMvB1gbMj10bpu9PXc6ywliF+dCc=";
  };

  vendorHash = "sha256-KFWDqbdbXvgEtz1nlasWrvIckpzasUdzbb+AKfXmYf8=";

  meta = with lib; {
    description = "Database-agnostic SQL exporter for Prometheus";
    mainProgram = "sql_exporter";
    homepage = "https://github.com/burningalchemist/sql_exporter";
    license = licenses.mit;
  };
}