This is for consistency with postgresqlTestExtension and postgresqlTestHook. Everything that is passed via postgresql's generic.nix "packages scope" now is prefixed with "postgresql".
30 lines
747 B
Nix
30 lines
747 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
stdenv,
|
|
}:
|
|
|
|
postgresqlBuildExtension rec {
|
|
pname = "pg_uuidv7";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fboulnois";
|
|
repo = "pg_uuidv7";
|
|
tag = "v${version}";
|
|
hash = "sha256-lG6dCnbLALnfQc4uclqXXXfYjK/WXLV0lo5I8l1E5p4=";
|
|
};
|
|
|
|
meta = {
|
|
description = "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 lib.maintainers; [ gaelreyrol ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.mpl20;
|
|
broken = lib.versionOlder postgresql.version "13";
|
|
};
|
|
}
|