Merge pull request #198073 from thenonameguy/pg_relusage

postgresqlPackages.pg_relusage: init at 0.0.1

authored by Mario Rodas and committed by GitHub 46e209ce f0518630

+31
+29
pkgs/servers/sql/postgresql/ext/pg_relusage.nix
···
··· 1 + { lib, stdenv, fetchFromGitHub, postgresql }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "pg_relusage"; 5 + version = "0.0.1"; 6 + 7 + buildInputs = [ postgresql ]; 8 + 9 + src = fetchFromGitHub { 10 + owner = "adept"; 11 + repo = pname; 12 + rev = "refs/tags/${version}"; 13 + sha256 = "8hJNjQ9MaBk3J9a73l+yQMwMW/F2N8vr5PO2o+5GvYs="; 14 + }; 15 + 16 + installPhase = '' 17 + install -D -t $out/lib *.so 18 + install -D -t $out/share/postgresql/extension *.sql 19 + install -D -t $out/share/postgresql/extension *.control 20 + ''; 21 + 22 + meta = with lib; { 23 + description = "pg_relusage extension for PostgreSQL: discover and log the relations used in your statements"; 24 + homepage = "https://github.com/adept/pg_relusage"; 25 + maintainers = with maintainers; [ thenonameguy ]; 26 + platforms = postgresql.meta.platforms; 27 + license = licenses.postgresql; 28 + }; 29 + }
+2
pkgs/servers/sql/postgresql/packages.nix
··· 62 63 pg_partman = super.callPackage ./ext/pg_partman.nix { }; 64 65 pg_safeupdate = super.callPackage ./ext/pg_safeupdate.nix { }; 66 67 repmgr = super.callPackage ./ext/repmgr.nix { };
··· 62 63 pg_partman = super.callPackage ./ext/pg_partman.nix { }; 64 65 + pg_relusage = super.callPackage ./ext/pg_relusage.nix { }; 66 + 67 pg_safeupdate = super.callPackage ./ext/pg_safeupdate.nix { }; 68 69 repmgr = super.callPackage ./ext/repmgr.nix { };