summaryrefslogtreecommitdiff
path: root/pkgs/servers/sql/postgresql/ext/pg_rational.nix
blob: db3fdd340ac92215a7ec5ee01f0cd4ba08f4ed19 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  fetchFromGitHub,
  lib,
  postgresql,
  postgresqlBuildExtension,
}:

postgresqlBuildExtension (finalAttrs: {
  pname = "pg_rational";
  version = "0.0.2";

  src = fetchFromGitHub {
    owner = "begriffs";
    repo = "pg_rational";
    tag = "v${finalAttrs.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;
  };
})