depot/pkgs/servers/sql/postgresql/ext/pg_roaringbitmap.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
970 B
Nix

{ 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 = [ ];
inherit (postgresql.meta) platforms;
};
})