diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2023-10-23 16:19:21 -0400 |
---|---|---|
committer | Bruno Bigras <bigras.bruno@gmail.com> | 2023-10-23 16:19:21 -0400 |
commit | 6901ab53f53ed9994476b45dbf6935000060cea5 (patch) | |
tree | 0add7cb190e256aa210bf848a61acc08418c17aa /pkgs/servers/sql | |
parent | 9dc9be256dd723f2c63a0fecfd4f20e8a13acad6 (diff) |
postgresqlPackages.hypopg: init at 1.4.0
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r-- | pkgs/servers/sql/postgresql/ext/hypopg.nix | 29 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/ext/hypopg.nix b/pkgs/servers/sql/postgresql/ext/hypopg.nix new file mode 100644 index 0000000000000..62f2e9263e76f --- /dev/null +++ b/pkgs/servers/sql/postgresql/ext/hypopg.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, postgresql }: + +stdenv.mkDerivation rec { + pname = "hypopg"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "HypoPG"; + repo = "hypopg"; + rev = version; + hash = "sha256-YzQnkQi9BlDryUySnWHWeTanhgfVUXjHjOqj+nQucCY="; + }; + + buildInputs = [ postgresql ]; + + installPhase = '' + install -D -t $out/lib *${postgresql.dlSuffix} + install -D -t $out/share/postgresql/extension *.control + install -D -t $out/share/postgresql/extension *.sql + ''; + + meta = with lib; { + description = "Hypothetical Indexes for PostgreSQL"; + homepage = "https://hypopg.readthedocs.io"; + license = licenses.postgresql; + platforms = postgresql.meta.platforms; + maintainers = with maintainers; [ bbigras ]; + }; +} diff --git a/pkgs/servers/sql/postgresql/packages.nix b/pkgs/servers/sql/postgresql/packages.nix index 64254e8261549..39197ff3ed4ee 100644 --- a/pkgs/servers/sql/postgresql/packages.nix +++ b/pkgs/servers/sql/postgresql/packages.nix @@ -4,6 +4,8 @@ self: super: { apache_datasketches = super.callPackage ./ext/apache_datasketches.nix { }; + hypopg = super.callPackage ./ext/hypopg.nix { }; + jsonb_deep_sum = super.callPackage ./ext/jsonb_deep_sum.nix { }; periods = super.callPackage ./ext/periods.nix { }; |