nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 nix-update-script,
6}:
7buildGoModule rec {
8 pname = "plan-exporter";
9 version = "0.0.6";
10
11 src = fetchFromGitHub {
12 owner = "agneum";
13 repo = "plan-exporter";
14 tag = "v${version}";
15 hash = "sha256-Csp57wmkDA8b05hmKbk1+bGtORFgNls7I01A0irTKao=";
16 };
17
18 vendorHash = null;
19
20 passthru = {
21 updateScript = nix-update-script { };
22 };
23
24 meta = {
25 description = "Query plan exporter for psql";
26 homepage = "https://github.com/agneum/plan-exporter";
27 changelog = "https://github.com/agneum/plan-exporter/releases/tag/v${version}";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ autra ];
30 };
31}