postgresqlPackages.pg_byteamagic: init at 0.2.4 (#387925)
This commit is contained in:
@@ -58,6 +58,15 @@ with lib.maintainers;
|
||||
enableFeatureFreezePing = true;
|
||||
};
|
||||
|
||||
apm = {
|
||||
scope = "Team for packages maintained by employees of Akademie für Pflegeberufe und Management GmbH.";
|
||||
shortName = "apm employees";
|
||||
# Edits to this list should only be done by an already existing member.
|
||||
members = [
|
||||
wolfgangwalther
|
||||
];
|
||||
};
|
||||
|
||||
bazel = {
|
||||
members = [
|
||||
mboes
|
||||
|
||||
@@ -24,6 +24,8 @@ in {
|
||||
|
||||
pg_auto_failover = super.callPackage ./pg_auto_failover.nix { };
|
||||
|
||||
pg_byteamagic = super.callPackage ./pg_byteamagic.nix { };
|
||||
|
||||
pg_bigm = super.callPackage ./pg_bigm.nix { };
|
||||
|
||||
pg_ed25519 = super.callPackage ./pg_ed25519.nix { };
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
buildPostgresqlExtension,
|
||||
fetchFromGitHub,
|
||||
file,
|
||||
lib,
|
||||
postgresql,
|
||||
postgresqlTestExtension,
|
||||
}:
|
||||
|
||||
buildPostgresqlExtension (finalAttrs: {
|
||||
pname = "pg_byteamagic";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nmandery";
|
||||
repo = "pg_byteamagic";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-0RRElMMVUm3cXLI7G3SkIVr8yA/Rk3gBsgXG+EFU3CI=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
file
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
extension = postgresqlTestExtension {
|
||||
inherit (finalAttrs) finalPackage;
|
||||
sql = ''
|
||||
CREATE EXTENSION byteamagic;
|
||||
SELECT byteamagic_mime('test');
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "PostgreSQL extension to determinate the filetypes of bytea BLOBs";
|
||||
homepage = "https://github.com/nmandery/pg_byteamagic";
|
||||
changelog = "https://raw.githubusercontent.com/nmandery/pg_byteamagic/refs/tags/v${finalAttrs.version}/Changes";
|
||||
license = lib.licenses.bsd2WithViews;
|
||||
maintainers = lib.teams.apm.members;
|
||||
platforms = postgresql.meta.platforms;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user