File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -116,14 +116,21 @@ stdenv.mkDerivation {
116
116
VERSION=$1
117
117
LIB_DIR=$(dirname "$0")/../lib
118
118
119
+ # Use platform-specific extension
120
+ if [ "$(uname)" = "Darwin" ]; then
121
+ EXT=".dylib"
122
+ else
123
+ EXT=".so"
124
+ fi
125
+
119
126
# Check if version exists
120
- if [ ! -f "$LIB_DIR/pg_cron-$VERSION${ postgresql . dlSuffix } " ]; then
127
+ if [ ! -f "$LIB_DIR/pg_cron-$VERSION$EXT " ]; then
121
128
echo "Error: Version $VERSION not found"
122
129
exit 1
123
130
fi
124
131
125
132
# Update library symlink
126
- ln -sfnv "pg_cron-$VERSION${ postgresql . dlSuffix } " "$LIB_DIR/pg_cron${ postgresql . dlSuffix } "
133
+ ln -sfnv "pg_cron-$VERSION$EXT " "$LIB_DIR/pg_cron$EXT "
127
134
128
135
echo "Successfully switched pg_cron to version $VERSION"
129
136
EOF
You can’t perform that action at this time.
0 commit comments