Merge pull request #254326 from marsam/add-pgsql-http

postgresqlPackages.pgsql-http: init at 1.6.0
This commit is contained in:
Mario Rodas 2023-09-11 06:35:57 -05:00 committed by GitHub
commit 2499594f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

@ -0,0 +1,30 @@
{ lib, stdenv, fetchFromGitHub, curl, postgresql }:
stdenv.mkDerivation rec {
pname = "pgsql-http";
version = "1.6.0";
src = fetchFromGitHub {
owner = "pramsey";
repo = "pgsql-http";
rev = "v${version}";
hash = "sha256-CPHfx7vhWfxkXsoKTzyFuTt47BPMvzi/pi1leGcuD60=";
};
buildInputs = [ curl postgresql ];
installPhase = ''
install -D -t $out/lib *.so
install -D -t $out/share/postgresql/extension *.sql
install -D -t $out/share/postgresql/extension *.control
'';
meta = with lib; {
description = "HTTP client for PostgreSQL, retrieve a web page from inside the database";
homepage = "https://github.com/pramsey/pgsql-http";
changelog = "https://github.com/pramsey/pgsql-http/releases/tag/v${version}";
maintainers = [ maintainers.marsam ];
platforms = postgresql.meta.platforms;
license = licenses.mit;
};
}

@ -30,6 +30,8 @@ self: super: {
pgroonga = super.callPackage ./ext/pgroonga.nix { };
pgsql-http = super.callPackage ./ext/pgsql-http.nix { };
pgvector = super.callPackage ./ext/pgvector.nix { };
plpgsql_check = super.callPackage ./ext/plpgsql_check.nix { };