We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9630660 commit de9135fCopy full SHA for de9135f
1 file changed
nix/ext/wrappers/default.nix
@@ -7,6 +7,8 @@
7
pkg-config,
8
postgresql,
9
buildEnv,
10
+ makeWrapper,
11
+ switch-ext-version,
12
rust-bin,
13
git,
14
latestOnly ? false,
@@ -246,6 +248,7 @@ in
246
248
(buildEnv {
247
249
name = pname;
250
paths = packages;
251
+ nativeBuildInputs = [ makeWrapper ];
252
pathsToLink = [
253
"/lib"
254
"/share/postgresql/extension"
@@ -335,6 +338,9 @@ in
335
338
create_lib_files
336
339
${if latestOnly then "" else "create_migration_sql_files"}
337
340
341
+ makeWrapper ${lib.getExe switch-ext-version} $out/bin/switch_${pname}_version \
342
+ --prefix EXT_WRAPPER : "$out" --prefix EXT_NAME : "${pname}"
343
+
344
# Verify library count matches expected
345
${
346
if latestOnly then
0 commit comments