pg-semver: init at 0.40.0

release notes: https://github.com/theory/pg-semver/blob/main/Changes
This commit is contained in:
Gregor Giesen 2024-09-10 16:24:17 +02:00
parent c52b0e6d75
commit 60533972ec
No known key found for this signature in database
GPG Key ID: 26708AEB8029DD69
2 changed files with 39 additions and 0 deletions

View File

@ -72,6 +72,8 @@ in {
pg_net = super.callPackage ./pg_net.nix { };
pg-semver = super.callPackage ./pg-semver.nix { };
pgtap = super.callPackage ./pgtap.nix { };
smlar = super.callPackage ./smlar.nix { };

View File

@ -0,0 +1,37 @@
{
lib,
fetchFromGitHub,
postgresql,
postgresqlTestExtension,
testers,
buildPostgresqlExtension,
}:
buildPostgresqlExtension (finalAttrs: {
pname = "pg-semver";
version = "0.40.0";
src = fetchFromGitHub {
owner = "theory";
repo = "pg-semver";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-9f+QuGupjTUK3cQk7DFDrL7MOIwDE9SAUyVZ9RfrdDM=";
};
passthru.tests = {
version = testers.testVersion { package = finalAttrs.finalPackage; };
extension = postgresqlTestExtension {
inherit (finalAttrs) finalPackage;
sql = "CREATE EXTENSION semver;";
};
};
meta = {
description = "Semantic version data type for PostgreSQL";
homepage = "https://github.com/theory/pg-semver";
changelog = "https://github.com/theory/pg-semver/blob/main/Changes";
maintainers = with lib.maintainers; [ grgi ];
inherit (postgresql.meta) platforms;
license = lib.licenses.postgresql;
};
})