postgresqlPackages: rename buildPostgresqlExtension to postgresqlBuildExtension

This is for consistency with postgresqlTestExtension and
postgresqlTestHook. Everything that is passed via postgresql's
generic.nix "packages scope" now is prefixed with "postgresql".
This commit is contained in:
Wolfgang Walther
2025-03-18 18:17:24 +01:00
parent 6e0738b8c2
commit 72b8186ff7
58 changed files with 115 additions and 115 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
{
bison,
buildPostgresqlExtension,
fetchFromGitHub,
flex,
lib,
perl,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
@@ -19,7 +19,7 @@ let
"13" = "sha256-HR6nnWt/V2a0rD5eHHUsFIZ1y7lmvLz36URt9pPJnCw=";
};
in
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "age";
version = "1.5.0-rc0";
@@ -1,16 +1,16 @@
{
buildPostgresqlExtension,
jitSupport,
lib,
llvm,
nixosTests,
pg-dump-anon,
postgresql,
postgresqlBuildExtension,
runtimeShell,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "postgresql_anonymizer";
inherit (pg-dump-anon) version src;
@@ -1,9 +1,9 @@
{
boost186,
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
@@ -28,7 +28,7 @@ let
};
in
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "apache_datasketches";
inherit version;
+2 -2
View File
@@ -1,14 +1,14 @@
{
buildPostgresqlExtension,
curl,
fetchFromGitHub,
lib,
lz4,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "citus";
version = "13.0.2";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
protobufc,
stdenv,
}:
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "cstore_fdw";
version = "1.7.0-unstable-2021-03-08";
+2 -2
View File
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
h3_4,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "h3-pg";
version = "4.2.2";
+2 -2
View File
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
gitUpdater,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "hypopg";
version = "1.4.1";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "jsonb_deep_sum";
version = "0-unstable-2021-12-24";
+2 -2
View File
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
lib,
openssl,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "postgresql-lantern";
version = "0.5.0";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "periods";
version = "1.2.3";
+2 -2
View File
@@ -1,5 +1,4 @@
{
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
glib,
@@ -10,9 +9,10 @@
pcre2,
pkg-config,
postgresql,
postgresqlBuildExtension,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg-gvm";
version = "22.6.8";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
testers,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg-semver";
version = "0.40.0";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_auto_failover";
version = "2.1";
+2 -2
View File
@@ -1,11 +1,11 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_bigm";
version = "1.2-20240606";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
file,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg_byteamagic";
version = "0.2.4";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_cron";
version = "1.6.5";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitLab,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_ed25519";
version = "0.2";
@@ -1,8 +1,8 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
@@ -33,7 +33,7 @@ let
.${lib.versions.major postgresql.version}
or (throw "Source for pg_hint_plan is not available for ${postgresql.version}");
in
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "pg_hint_plan";
inherit (source) version;
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_hll";
version = "2.18";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_ivm";
version = "1.9";
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
gitUpdater,
lib,
libversion,
pkg-config,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg_libversion";
version = "2.0.1";
+2 -2
View File
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
curl,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_net";
version = "0.14.0";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_partman";
version = "5.2.4";
@@ -1,11 +1,11 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_rational";
version = "0.0.2";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_relusage";
version = "0.0.1";
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
gitUpdater,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
testers,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg_repack";
version = "1.5.2";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestHook,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg_roaringbitmap";
version = "0.5.4";
@@ -1,8 +1,8 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
@@ -31,7 +31,7 @@ with {
."${lib.versions.major postgresql.version}"
or (throw "pg_safeupdate: version specification for pg ${postgresql.version} missing.");
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg-safeupdate";
inherit version;
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
fetchpatch,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "pg_similarity";
version = "pg_similarity_1_0-unstable-2021-01-12";
@@ -1,14 +1,14 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
nix-update-script,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pg_squeeze";
version = "${builtins.replaceStrings [ "_" ] [ "." ] (
lib.strings.removePrefix "REL" finalAttrs.src.rev
+2 -2
View File
@@ -1,11 +1,11 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_tle";
version = "1.4.0";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_topn";
version = "2.7.0";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pg_uuidv7";
version = "1.6.0";
+2 -2
View File
@@ -1,10 +1,10 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
libkrb5,
openssl,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
@@ -35,7 +35,7 @@ let
.${lib.versions.major postgresql.version}
or (throw "Source for pgaudit is not available for ${postgresql.version}");
in
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "pgaudit";
inherit (source) version;
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
perl,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pgddl";
version = "0.29";
+2 -2
View File
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
nixosTests,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
unstableGitUpdater,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pgjwt";
version = "0-unstable-2023-03-02";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pgmq";
version = "1.5.0";
+2 -2
View File
@@ -1,16 +1,16 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
groonga,
lib,
msgpack-c,
pkg-config,
postgresql,
postgresqlBuildExtension,
stdenv,
xxHash,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pgroonga";
version = "4.0.1";
@@ -1,15 +1,15 @@
{
boost,
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
lib,
perl,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pgrouting";
version = "3.7.3";
+2 -2
View File
@@ -1,15 +1,15 @@
{
bash,
buildPostgresqlExtension,
fetchFromGitHub,
lib,
libsodium,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pgsodium";
version = "3.1.9";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
curl,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pgsql-http";
version = "1.6.3";
+2 -2
View File
@@ -1,16 +1,16 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
perl,
perlPackages,
postgresql,
postgresqlBuildExtension,
postgresqlTestHook,
stdenv,
which,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "pgtap";
version = "1.3.3";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "pgvector";
version = "0.8.0";
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "plpgsql-check";
version = "2.7.15";
+2 -2
View File
@@ -1,14 +1,14 @@
{
R,
buildPostgresqlExtension,
fetchFromGitHub,
lib,
pkg-config,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "plr";
version = "${builtins.replaceStrings [ "_" ] [ "." ] (lib.strings.removePrefix "REL" src.rev)}";
@@ -1,11 +1,11 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
jitSupport,
lib,
nodejs_20,
perl,
postgresql,
postgresqlBuildExtension,
stdenv,
# For test
coreutils,
@@ -16,7 +16,7 @@
let
libv8 = nodejs_20.libv8;
in
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "plv8";
version = "3.2.3";
+2 -2
View File
@@ -1,7 +1,6 @@
{
autoconf,
automake,
buildPostgresqlExtension,
cunit,
docbook5,
fetchFromGitHub,
@@ -20,6 +19,7 @@
perl,
pkg-config,
postgresql,
postgresqlBuildExtension,
postgresqlTestExtension,
postgresqlTestHook,
proj,
@@ -34,7 +34,7 @@
let
gdal = gdalMinimal;
in
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "postgis";
version = "3.5.2";
+2 -2
View File
@@ -1,15 +1,15 @@
{
buildPostgresqlExtension,
curl,
fetchFromGitHub,
flex,
json_c,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "repmgr";
version = "5.5.0";
+2 -2
View File
@@ -1,13 +1,13 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
postgresqlTestHook,
stdenv,
}:
buildPostgresqlExtension (finalAttrs: {
postgresqlBuildExtension (finalAttrs: {
pname = "rum";
version = "1.3.14";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchgit,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension {
postgresqlBuildExtension {
pname = "smlar-unstable";
version = "2021-11-08";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
sqlite,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "sqlite_fdw";
version = "2.5.0";
@@ -1,11 +1,11 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "system_stats";
version = "3.2";
+2 -2
View File
@@ -1,14 +1,14 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
freetds,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
unstableGitUpdater,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "tds_fdw";
version = "2.0.4";
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
stdenv,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "temporal_tables";
version = "1.2.2";
@@ -1,5 +1,4 @@
{
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
lib,
@@ -7,12 +6,13 @@
nixosTests,
openssl,
postgresql,
postgresqlBuildExtension,
stdenv,
enableUnfree ? true,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}";
version = "2.18.2";
+2 -2
View File
@@ -1,12 +1,12 @@
{
buildPostgresqlExtension,
fetchFromGitHub,
lib,
nixosTests,
postgresql,
postgresqlBuildExtension,
}:
buildPostgresqlExtension rec {
postgresqlBuildExtension rec {
pname = "wal2json";
version = "${builtins.replaceStrings [ "_" ] [ "." ] (
lib.strings.removePrefix "wal2json_" src.rev
+1 -1
View File
@@ -452,7 +452,7 @@ let
}
// extraArgs
);
buildPostgresqlExtension = newSuper.callPackage ./buildPostgresqlExtension.nix { };
postgresqlBuildExtension = newSuper.callPackage ./postgresqlBuildExtension.nix { };
};
newSelf = self // scope;
newSuper = {
@@ -66,7 +66,7 @@
args:
let
buildPostgresqlExtension =
postgresqlBuildExtension =
finalAttrs:
{
enableUpdateScript ? true,
@@ -146,4 +146,4 @@ let
+ prevAttrs.postInstall or "";
};
in
stdenv.mkDerivation (lib.extends buildPostgresqlExtension (lib.toFunction args))
stdenv.mkDerivation (lib.extends postgresqlBuildExtension (lib.toFunction args))