Merge pull request #177192 from 1000101/pg_hint_plan

postgresqlPackages.pg_hint_plan: init at 14-1.4.0
This commit is contained in:
Mario Rodas 2022-06-10 19:14:22 -05:00 committed by GitHub
commit 1305f60eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib, stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
pname = "pg_hint_plan";
version = "14-1.4.0";
src = fetchFromGitHub {
owner = "ossc-db";
repo = pname;
rev = "REL${builtins.replaceStrings ["-" "."] ["_" "_"] version}";
sha256 = "sha256-2hYDn/69264x2lMRVIp/I5chjocL6UqIw5ry1qdRcDM=";
};
buildInputs = [ postgresql ];
installPhase = ''
mkdir -p $out/{lib,share/postgresql/extension}
cp *.so $out/lib
cp *.sql $out/share/postgresql/extension
cp *.control $out/share/postgresql/extension
'';
meta = with lib; {
description = "Extension to tweak PostgreSQL execution plans using so-called 'hints' in SQL comments";
homepage = "https://github.com/ossc-db/pg_hint_plan";
maintainers = with maintainers; [ _1000101 ];
platforms = postgresql.meta.platforms;
license = licenses.bsd3;
broken = versionOlder postgresql.version "14";
};
}

View File

@ -14,6 +14,8 @@ self: super: {
pg_ed25519 = super.callPackage ./ext/pg_ed25519.nix { };
pg_hint_plan = super.callPackage ./ext/pg_hint_plan.nix { };
pg_rational = super.callPackage ./ext/pg_rational.nix { };
pg_repack = super.callPackage ./ext/pg_repack.nix { };