Merge pull request #262882 from gaelreyrol/postgresql-packages-pg_uudiv7-init

postgresqlPackages.pg_uuidv7: init at 1.3.0
This commit is contained in:
Mario Rodas 2023-10-25 20:56:56 -05:00 committed by GitHub
commit fb97aa67ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib
, stdenv
, fetchFromGitHub
, postgresql
}:
stdenv.mkDerivation rec {
pname = "pg_uuidv7";
version = "1.3.0";
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "fboulnois";
repo = "pg_uuidv7";
rev = "v${version}";
hash = "sha256-kHxS9tL7fpKhjJ8Xx5tee1fv10zVcTt2FgUQSaRdNZo=";
};
installPhase = ''
install -D -t $out/lib pg_uuidv7${postgresql.dlSuffix}
install -D {sql/pg_uuidv7--${lib.versions.majorMinor version}.sql,pg_uuidv7.control} -t $out/share/postgresql/extension
'';
meta = with lib; {
description = "A tiny Postgres extension to create version 7 UUIDs";
homepage = "https://github.com/fboulnois/pg_uuidv7";
changelog = "https://github.com/fboulnois/pg_uuidv7/blob/main/CHANGELOG.md";
maintainers = with maintainers; [ gaelreyrol ];
platforms = postgresql.meta.platforms;
license = licenses.mpl20;
broken = versionOlder postgresql.version "13";
};
}

View File

@ -79,6 +79,8 @@ self: super: {
pg_safeupdate = super.callPackage ./ext/pg_safeupdate.nix { };
pg_uuidv7 = super.callPackage ./ext/pg_uuidv7.nix { };
promscale_extension = super.callPackage ./ext/promscale_extension.nix { };
repmgr = super.callPackage ./ext/repmgr.nix { };