From c0531e2234136aa8cd57a9ab7da137a8f130e919 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Fri, 29 Sep 2023 18:33:22 -0300 Subject: [PATCH] ci: fix MacOS CI --- default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ]); }