Skip to content

Commit de9135f

Browse files
committed
fix: switch-ext on wrappers
1 parent 9630660 commit de9135f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nix/ext/wrappers/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
pkg-config,
88
postgresql,
99
buildEnv,
10+
makeWrapper,
11+
switch-ext-version,
1012
rust-bin,
1113
git,
1214
latestOnly ? false,
@@ -246,6 +248,7 @@ in
246248
(buildEnv {
247249
name = pname;
248250
paths = packages;
251+
nativeBuildInputs = [ makeWrapper ];
249252
pathsToLink = [
250253
"/lib"
251254
"/share/postgresql/extension"
@@ -335,6 +338,9 @@ in
335338
create_lib_files
336339
${if latestOnly then "" else "create_migration_sql_files"}
337340
341+
makeWrapper ${lib.getExe switch-ext-version} $out/bin/switch_${pname}_version \
342+
--prefix EXT_WRAPPER : "$out" --prefix EXT_NAME : "${pname}"
343+
338344
# Verify library count matches expected
339345
${
340346
if latestOnly then

0 commit comments

Comments
 (0)