Merge: pg-semver: init at 0.40.0 (#341014)

This commit is contained in:
Maximilian Bosch 2024-11-17 22:40:48 +01:00 committed by GitHub
commit da5c25920d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 47 additions and 0 deletions

View File

@ -8347,6 +8347,14 @@
githubId = 7385287; githubId = 7385287;
name = "Lana Black"; name = "Lana Black";
}; };
grgi = {
name = "Gregor Giesen";
email = "gregor@giesen.net";
matrix = "@gregor:giesen.net";
github = "grgi";
githubId = 6435815;
keys = [ { fingerprint = "0F92 602B 1860 4476 77F4 8A67 C303 16AA C10F 3EA7"; } ];
};
gridaphobe = { gridaphobe = {
email = "eric@seidel.io"; email = "eric@seidel.io";
github = "gridaphobe"; github = "gridaphobe";

View File

@ -72,6 +72,8 @@ in {
pg_net = super.callPackage ./pg_net.nix { }; pg_net = super.callPackage ./pg_net.nix { };
pg-semver = super.callPackage ./pg-semver.nix { };
pgtap = super.callPackage ./pgtap.nix { }; pgtap = super.callPackage ./pgtap.nix { };
smlar = super.callPackage ./smlar.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;
};
})