This is for consistency with postgresqlTestExtension and postgresqlTestHook. Everything that is passed via postgresql's generic.nix "packages scope" now is prefixed with "postgresql".
27 lines
595 B
Nix
27 lines
595 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension rec {
|
|
pname = "pg_rational";
|
|
version = "0.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "begriffs";
|
|
repo = "pg_rational";
|
|
tag = "v${version}";
|
|
hash = "sha256-Sp5wuX2nP3KGyWw7MFa11rI1CPIKIWBt8nvBSsASIEw=";
|
|
};
|
|
|
|
meta = {
|
|
description = "Precise fractional arithmetic for PostgreSQL";
|
|
homepage = "https://github.com/begriffs/pg_rational";
|
|
maintainers = with lib.maintainers; [ netcrns ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|