delft: use postgresql-exporter from nixpkgs
Martin Weinelt committed
Dec 17, 2021 at 22:42 UTC
a8402e758bf8718dc5a9fed018fe40e8e9040db8
2 files changed
-31
delft/network.nix
-5
@@ -1,10 +1,6 @@
1
flakes:
2
3
let
4
- networkoverlay = self: super: {
5
- prometheus-postgres-exporter = self.callPackage ./prometheus/postgres-exporter.nix {};
6
- };
7
-
4
makeMac = { ip, extra }: {
5
deployment = {
6
targetHost = ip;
@@ -53,7 +49,6 @@ in {
49
or (throw "Cannot deploy from an unclean source tree!");
50
nixpkgs.overlays = [
51
flakes.nix.overlay
56
- networkoverlay
52
];
53
nix.registry.nixpkgs.flake = flakes.nixpkgs;
54
nix.nixPath = [ "nixpkgs=${flakes.nixpkgs}" ];
delft/prometheus/postgres-exporter.nix
deleted
-26
@@ -1,26 +0,0 @@
1
-{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2
-
3
-buildGoModule rec {
4
- pname = "postgres_exporter";
5
- version = "0.9.0";
6
-
7
- src = fetchFromGitHub {
8
- owner = "wrouesnel";
9
- repo = "postgres_exporter";
10
- rev = "v${version}";
11
- sha256 = "sha256-Kv+sjqhlmH36L4YvDuGYODR/eTHA2TKQ6IUCXAiItyo=";
12
- };
13
-
14
- vendorSha256 = "sha256-yMcoUl9NsiiZQyEHlLu79DzIyl6BbhLZ/xNFavaGrEs=";
15
-
16
- doCheck = true;
17
-
18
- passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
19
-
20
- meta = with lib; {
21
- inherit (src.meta) homepage;
22
- description = "A Prometheus exporter for PostgreSQL";
23
- license = licenses.asl20;
24
- maintainers = with maintainers; [ fpletz globin willibutz ma27 ];
25
- };
26
-}