File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,19 @@ stdenv.mkDerivation (finalAttrs: {
103
103
# so changing them does not cause issues.
104
104
mv "$out/nix/store"/*/* "$out"
105
105
rmdir "$out/nix/store"/* "$out/nix/store" "$out/nix"
106
-
106
+ mv "$out/lib/plv8-${ finalAttrs . version } .so" "$out/lib/plv8.so"
107
+ sed -i 's|module_pathname = '"'"'$libdir/plv8-[0-9.]*'"'"'|module_pathname = '"'"'$libdir/plv8'"'"'|' "$out/share/postgresql/extension/plv8.control"
108
+ sed -i 's|module_pathname = '"'"'$libdir/plv8-[0-9.]*'"'"'|module_pathname = '"'"'$libdir/plv8'"'"'|' "$out/share/postgresql/extension/plcoffee.control"
109
+ sed -i 's|module_pathname = '"'"'$libdir/plv8-[0-9.]*'"'"'|module_pathname = '"'"'$libdir/plv8'"'"'|' "$out/share/postgresql/extension/plls.control"
107
110
${ lib . optionalString stdenv . isDarwin ''
108
- install_name_tool -add_rpath "${ v8 } /lib" $out/lib/plv8- ${ finalAttrs . version } .so
109
- install_name_tool -add_rpath "${ postgresql } /lib" $out/lib/plv8- ${ finalAttrs . version } .so
110
- install_name_tool -add_rpath "${ stdenv . cc . cc . lib } /lib" $out/lib/plv8- ${ finalAttrs . version } .so
111
- install_name_tool -change @rpath/libv8_monolith.dylib ${ v8 } /lib/libv8_monolith.dylib $out/lib/plv8- ${ finalAttrs . version } .so
111
+ install_name_tool -add_rpath "${ v8 } /lib" $out/lib/plv8.so
112
+ install_name_tool -add_rpath "${ postgresql } /lib" $out/lib/plv8.so
113
+ install_name_tool -add_rpath "${ stdenv . cc . cc . lib } /lib" $out/lib/plv8.so
114
+ install_name_tool -change @rpath/libv8_monolith.dylib ${ v8 } /lib/libv8_monolith.dylib $out/lib/plv8.so
112
115
'' }
113
116
114
117
${ lib . optionalString ( ! stdenv . isDarwin ) ''
115
- ${ patchelf } /bin/patchelf --set-rpath "${ v8 } /lib:${ postgresql } /lib:${ stdenv . cc . cc . lib } /lib" $out/lib/plv8- ${ finalAttrs . version } .so
118
+ ${ patchelf } /bin/patchelf --set-rpath "${ v8 } /lib:${ postgresql } /lib:${ stdenv . cc . cc . lib } /lib" $out/lib/plv8.so
116
119
'' }
117
120
'' ;
118
121
You can’t perform that action at this time.
0 commit comments