nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "pg_flame";
9 version = "1.2";
10
11 src = fetchFromGitHub {
12 owner = "mgartner";
13 repo = "pg_flame";
14 rev = "v${version}";
15 hash = "sha256-glvIv9GHIbp6IZUvZo9fyvkJ6QR03nMlrAOpZ3HfA6g=";
16 };
17
18 vendorHash = "sha256-ReVaetR3zkLLLc3d0EQkBAyUrxwBn3iq8MZAGzkQfeY=";
19
20 meta = {
21 description = "Flamegraph generator for Postgres EXPLAIN ANALYZE output";
22 homepage = "https://github.com/mgartner/pg_flame";
23 license = lib.licenses.asl20;
24 mainProgram = "pg_flame";
25 };
26}