Skip to content

Commit 0a6fd7d

Browse files
committed
feat: requires switch version script due to shared_preload
1 parent 0b9f568 commit 0a6fd7d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nix/ext/plpgsql-check.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
postgresql,
66
postgresqlTestHook,
77
buildEnv,
8+
makeWrapper,
9+
switch-ext-version,
810
}:
911
let
1012
pname = "plpgsql_check";
@@ -93,6 +95,7 @@ in
9395
buildEnv {
9496
name = pname;
9597
paths = packages;
98+
nativeBuildInputs = [ makeWrapper ];
9699

97100
pathsToLink = [
98101
"/lib"
@@ -120,10 +123,13 @@ buildEnv {
120123
fi
121124
previous_version=$ver
122125
done
126+
127+
makeWrapper ${lib.getExe switch-ext-version} $out/bin/switch_plpgsql_check_version \
128+
--prefix EXT_WRAPPER : "$out" --prefix EXT_NAME : "${pname}"
123129
'';
124130

125131
passthru = {
126-
inherit versions numberOfVersions;
132+
inherit versions numberOfVersions switch-ext-version;
127133
pname = "${pname}-all";
128134
version =
129135
"multi-" + lib.concatStringsSep "-" (map (v: lib.replaceStrings [ "." ] [ "-" ] v) versions);

0 commit comments

Comments
 (0)