diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-03-26 18:12:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 18:12:39 -0500 |
commit | 93883e16ecee2c231b4550f60a55daf876be0b32 (patch) | |
tree | d8f97e92ac80c2ef61480153353a790135545441 /pkgs/servers/sql | |
parent | a74a22b1ffa132bd7b6febdb25411e10959b729b (diff) | |
parent | 2d8a9a0bf4d9b433ee70323f26ef69b60d5dbe9f (diff) |
Merge pull request #299094 from marsam/add-pg_roaringbitmap
postgresqlPackages.pg_roaringbitmap: init at 0.5.4
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r-- | pkgs/servers/sql/postgresql/ext/default.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/ext/pg_roaringbitmap.nix | 32 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/ext/default.nix b/pkgs/servers/sql/postgresql/ext/default.nix index c8338a2cda4d5..af78f47eebcaf 100644 --- a/pkgs/servers/sql/postgresql/ext/default.nix +++ b/pkgs/servers/sql/postgresql/ext/default.nix @@ -91,6 +91,8 @@ self: super: { pg_relusage = super.callPackage ./pg_relusage.nix { }; + pg_roaringbitmap = super.callPackage ./pg_roaringbitmap.nix { }; + pg_safeupdate = super.callPackage ./pg_safeupdate.nix { }; pg_squeeze = super.callPackage ./pg_squeeze.nix { }; diff --git a/pkgs/servers/sql/postgresql/ext/pg_roaringbitmap.nix b/pkgs/servers/sql/postgresql/ext/pg_roaringbitmap.nix new file mode 100644 index 0000000000000..11cee5389b97a --- /dev/null +++ b/pkgs/servers/sql/postgresql/ext/pg_roaringbitmap.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestHook }: + +stdenv.mkDerivation (finalAttrs: { + pname = "pg_roaringbitmap"; + version = "0.5.4"; + + src = fetchFromGitHub { + owner = "ChenHuajun"; + repo = "pg_roaringbitmap"; + rev = "v${finalAttrs.version}"; + hash = "sha256-E6vqawnsRsAIajGDgJcTUWV1H8GFFboTjhmVfemUGbs="; + }; + + buildInputs = [ + postgresql + ]; + + installPhase = '' + install -D -t $out/lib roaringbitmap${postgresql.dlSuffix} + install -D -t $out/share/postgresql/extension roaringbitmap-*.sql + install -D -t $out/share/postgresql/extension roaringbitmap.control + ''; + + meta = with lib; { + description = "RoaringBitmap extension for PostgreSQL"; + homepage = "https://github.com/ChenHuajun/pg_roaringbitmap"; + changelog = "https://github.com/ChenHuajun/pg_roaringbitmap/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = [ maintainers.marsam ]; + inherit (postgresql.meta) platforms; + }; +}) |