24 lines
708 B
Nix
24 lines
708 B
Nix
{ lib, stdenv, fetchFromGitHub, curl, postgresql, buildPostgresqlExtension }:
|
|
|
|
buildPostgresqlExtension rec {
|
|
pname = "pgsql-http";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pramsey";
|
|
repo = "pgsql-http";
|
|
rev = "v${version}";
|
|
hash = "sha256-CPHfx7vhWfxkXsoKTzyFuTt47BPMvzi/pi1leGcuD60=";
|
|
};
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
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 = [ ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.mit;
|
|
};
|
|
}
|