2024-09-17 21:55:33 +02:00
|
|
|
{
|
|
|
|
curl,
|
2025-03-16 20:59:52 +01:00
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
2024-09-17 21:55:33 +02:00
|
|
|
postgresql,
|
2025-03-16 21:28:21 +01:00
|
|
|
postgresqlBuildExtension,
|
2024-09-17 21:55:33 +02:00
|
|
|
}:
|
2023-09-08 04:20:00 +00:00
|
|
|
|
2025-04-12 21:02:29 +02:00
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
2023-09-08 04:20:00 +00:00
|
|
|
pname = "pgsql-http";
|
2025-01-28 23:51:34 +00:00
|
|
|
version = "1.6.3";
|
2023-09-08 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pramsey";
|
|
|
|
repo = "pgsql-http";
|
2025-04-12 21:02:29 +02:00
|
|
|
tag = "v${finalAttrs.version}";
|
2025-01-28 23:51:34 +00:00
|
|
|
hash = "sha256-Ij8BaNj2SOwDfjgLxrpLFvvPCzSahXyyckRPGmcqKtE=";
|
2023-09-08 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-09-17 21:55:33 +02:00
|
|
|
buildInputs = [ curl ];
|
2025-02-01 10:25:22 +01:00
|
|
|
nativeBuildInputs = [ curl ];
|
2023-09-08 04:20:00 +00:00
|
|
|
|
2025-03-16 20:59:52 +01:00
|
|
|
meta = {
|
2023-09-08 04:20:00 +00:00
|
|
|
description = "HTTP client for PostgreSQL, retrieve a web page from inside the database";
|
|
|
|
homepage = "https://github.com/pramsey/pgsql-http";
|
2025-04-12 21:02:29 +02:00
|
|
|
changelog = "https://github.com/pramsey/pgsql-http/releases/tag/v${finalAttrs.version}";
|
2024-04-24 04:20:00 +00:00
|
|
|
maintainers = [ ];
|
2023-09-08 04:20:00 +00:00
|
|
|
platforms = postgresql.meta.platforms;
|
2025-03-16 20:59:52 +01:00
|
|
|
license = lib.licenses.mit;
|
2023-09-08 04:20:00 +00:00
|
|
|
};
|
2025-04-12 21:02:29 +02:00
|
|
|
})
|