1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 curl,
6 postgresql,
7 buildPostgresqlExtension,
8}:
9
10buildPostgresqlExtension rec {
11 pname = "pgsql-http";
12 version = "1.6.1";
13
14 src = fetchFromGitHub {
15 owner = "pramsey";
16 repo = "pgsql-http";
17 rev = "v${version}";
18 hash = "sha256-C8eqi0q1dnshUAZjIsZFwa5FTYc7vmATF3vv2CReWPM=";
19 };
20
21 buildInputs = [ curl ];
22
23 meta = with lib; {
24 description = "HTTP client for PostgreSQL, retrieve a web page from inside the database";
25 homepage = "https://github.com/pramsey/pgsql-http";
26 changelog = "https://github.com/pramsey/pgsql-http/releases/tag/v${version}";
27 maintainers = [ ];
28 platforms = postgresql.meta.platforms;
29 license = licenses.mit;
30 };
31}