diff --git a/default.nix b/default.nix index 40a672507c..aa125e60a1 100644 --- a/default.nix +++ b/default.nix @@ -50,7 +50,19 @@ let postgresqlVersions = [ - { name = "postgresql-16"; postgresql = pkgs.postgresql_16.withPackages (p: [ p.postgis p.pg_safeupdate ]); } + { + name = "postgresql-16"; + postgresql = pkgs.postgresql_16.withPackages (p: [ + p.postgis + (p.pg_safeupdate.overrideAttrs (old: { + installPhase = '' + mkdir -p $out/bin + cp safeupdate.dylib safeupdate.so || true + install -D safeupdate.so -t $out/lib + ''; + })) + ]); + } { name = "postgresql-15"; postgresql = pkgs.postgresql_15.withPackages (p: [ p.postgis p.pg_safeupdate ]); } { name = "postgresql-14"; postgresql = pkgs.postgresql_14.withPackages (p: [ p.postgis p.pg_safeupdate ]); } { name = "postgresql-13"; postgresql = pkgs.postgresql_13.withPackages (p: [ p.postgis p.pg_safeupdate ]); }