1{
2 fetchFromGitHub,
3 lib,
4 postgresql,
5 postgresqlBuildExtension,
6}:
7
8postgresqlBuildExtension (finalAttrs: {
9 pname = "pg_rational";
10 version = "0.0.2";
11
12 src = fetchFromGitHub {
13 owner = "begriffs";
14 repo = "pg_rational";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-Sp5wuX2nP3KGyWw7MFa11rI1CPIKIWBt8nvBSsASIEw=";
17 };
18
19 meta = {
20 description = "Precise fractional arithmetic for PostgreSQL";
21 homepage = "https://github.com/begriffs/pg_rational";
22 maintainers = with lib.maintainers; [ netcrns ];
23 platforms = postgresql.meta.platforms;
24 license = lib.licenses.mit;
25 };
26})