This is for consistency with postgresqlTestExtension and postgresqlTestHook. Everything that is passed via postgresql's generic.nix "packages scope" now is prefixed with "postgresql".
29 lines
677 B
Nix
29 lines
677 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
stdenv,
|
|
}:
|
|
|
|
postgresqlBuildExtension rec {
|
|
pname = "pg_cron";
|
|
version = "1.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = "pg_cron";
|
|
tag = "v${version}";
|
|
hash = "sha256-Llksil7Fk7jvJJmCpfCN0Qm2b2I4J1VOA7/ibytO+KM=";
|
|
};
|
|
|
|
meta = {
|
|
description = "Run Cron jobs through PostgreSQL";
|
|
homepage = "https://github.com/citusdata/pg_cron";
|
|
changelog = "https://github.com/citusdata/pg_cron/releases/tag/v${version}";
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.postgresql;
|
|
};
|
|
}
|