Skip to content

Commit 5cbce8f

Browse files
committed
fix: didn't need "loader"
1 parent 7cce2c2 commit 5cbce8f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

nix/ext/timescaledb.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ let
6666
6767
# Rename the loader to be version-specific
6868
if [ -f $out/lib/timescaledb${postgresql.dlSuffix} ]; then
69-
mv $out/lib/timescaledb${postgresql.dlSuffix} $out/lib/timescaledb-loader-${version}${postgresql.dlSuffix}
69+
mv $out/lib/timescaledb${postgresql.dlSuffix} $out/lib/timescaledb-${version}${postgresql.dlSuffix}
7070
fi
7171
7272
# The versioned library (timescaledb-VERSION.so) is already correctly named
@@ -111,7 +111,7 @@ buildEnv {
111111
} > $out/share/postgresql/extension/${pname}.control
112112
113113
# Create symlink for the loader
114-
ln -sfn ${pname}-loader-${latestVersion}${postgresql.dlSuffix} $out/lib/${pname}${postgresql.dlSuffix}
114+
ln -sfn ${pname}-${latestVersion}${postgresql.dlSuffix} $out/lib/${pname}${postgresql.dlSuffix}
115115
116116
# The versioned library symlink (timescaledb-VERSION.so files are already in place)
117117

nix/packages/switch-ext-version.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ writeShellApplication {
5454
# Update library symlink
5555
ln -sfnv "$EXT_LIB_TO_USE" "$EXT_WRAPPER_LIB/$EXT_NAME${postgresql.dlSuffix}"
5656
57-
# Handle timescaledb-loader symlink (specific to timescaledb)
58-
if [ "$EXT_NAME" = "timescaledb" ]; then
59-
EXT_LOADER_TO_USE="$EXT_WRAPPER_LIB/$EXT_NAME-loader-$VERSION${postgresql.dlSuffix}"
60-
if [ -f "$EXT_LOADER_TO_USE" ]; then
61-
ln -sfnv "$EXT_LOADER_TO_USE" "$EXT_WRAPPER_LIB/$EXT_NAME-loader${postgresql.dlSuffix}"
62-
fi
63-
fi
64-
6557
# Update control file
6658
EXT_WRAPPER_SHARE="$EXT_WRAPPER/share/postgresql/extension"
6759
echo "default_version = '$VERSION'" > "$EXT_WRAPPER_SHARE/$EXT_NAME.control"

0 commit comments

Comments
 (0)