File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed
pkgs/servers/sql/postgresql/ext Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ with lib.maintainers;
5858 enableFeatureFreezePing = true ;
5959 } ;
6060
61+ apm = {
62+ scope = "Team for packages maintained by employees of Akademie für Pflegeberufe und Management GmbH." ;
63+ shortName = "apm employees" ;
64+ # Edits to this list should only be done by an already existing member.
65+ members = [
66+ wolfgangwalther
67+ ] ;
68+ } ;
69+
6170 bazel = {
6271 members = [
6372 mboes
Original file line number Diff line number Diff line change 2424
2525 pg_auto_failover = super . callPackage ./pg_auto_failover.nix { } ;
2626
27+ pg_byteamagic = super . callPackage ./pg_byteamagic.nix { } ;
28+
2729 pg_bigm = super . callPackage ./pg_bigm.nix { } ;
2830
2931 pg_ed25519 = super . callPackage ./pg_ed25519.nix { } ;
Original file line number Diff line number Diff line change 1+ {
2+ buildPostgresqlExtension ,
3+ fetchFromGitHub ,
4+ file ,
5+ lib ,
6+ postgresql ,
7+ postgresqlTestExtension ,
8+ } :
9+
10+ buildPostgresqlExtension ( finalAttrs : {
11+ pname = "pg_byteamagic" ;
12+ version = "0.2.4" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "nmandery" ;
16+ repo = "pg_byteamagic" ;
17+ tag = "v${ finalAttrs . version } " ;
18+ hash = "sha256-0RRElMMVUm3cXLI7G3SkIVr8yA/Rk3gBsgXG+EFU3CI=" ;
19+ } ;
20+
21+ buildInputs = [
22+ file
23+ ] ;
24+
25+ passthru . tests = {
26+ extension = postgresqlTestExtension {
27+ inherit ( finalAttrs ) finalPackage ;
28+ sql = ''
29+ CREATE EXTENSION byteamagic;
30+ SELECT byteamagic_mime('test');
31+ '' ;
32+ } ;
33+ } ;
34+
35+ meta = {
36+ description = "PostgreSQL extension to determinate the filetypes of bytea BLOBs" ;
37+ homepage = "https://github.com/nmandery/pg_byteamagic" ;
38+ changelog = "https://raw.githubusercontent.com/nmandery/pg_byteamagic/refs/tags/v${ finalAttrs . version } /Changes" ;
39+ license = lib . licenses . bsd2WithViews ;
40+ maintainers = lib . teams . apm . members ;
41+ platforms = postgresql . meta . platforms ;
42+ } ;
43+ } )
You can’t perform that action at this time.
0 commit comments