@@ -1,18 +1,18 @@
1−{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
1+{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
22
3−buildGoPackage rec {
3+buildGoModule rec {
44 pname = "postgres_exporter";
5− version = "0.8.0";
6−
7− goPackagePath = "github.com/wrouesnel/postgres_exporter";
5+ version = "0.9.0";
86
97 src = fetchFromGitHub {
108 owner = "wrouesnel";
119 repo = "postgres_exporter";
1210 rev = "v${version}";
13− sha256 = "0mid2kvskab3a32jscygg5jh0741nr7dvxzj4v029yiiqcx55nrc";
11+ sha256 = "sha256-Kv+sjqhlmH36L4YvDuGYODR/eTHA2TKQ6IUCXAiItyo=";
1412 };
1513
14+ vendorSha256 = "sha256-yMcoUl9NsiiZQyEHlLu79DzIyl6BbhLZ/xNFavaGrEs=";
15+
1616 doCheck = true;
1717
1818 passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
@@ -21,6 +21,6 @@ buildGoPackage rec {
2121 inherit (src.meta) homepage;
2222 description = "A Prometheus exporter for PostgreSQL";
2323 license = licenses.asl20;
24− maintainers = with maintainers; [ fpletz globin willibutz ];
24+ maintainers = with maintainers; [ fpletz globin willibutz ma27 ];
2525 };
2626}