···7676 postInstall =
7777 ''
7878 moveToOutput "lib/pgxs" "$out" # looks strange, but not deleting it
7979- moveToOutput "lib/*.a" "$out"
7979+ moveToOutput "lib/libpgcommon.a" "$out"
8080+ moveToOutput "lib/libpgport.a" "$out"
8081 moveToOutput "lib/libecpg*" "$out"
81828283 # Prevent a retained dependency on gcc-wrapper.
···84858586 if [ -z "''${dontDisableStatic:-}" ]; then
8687 # Remove static libraries in case dynamic are available.
8787- for i in $out/lib/*.a; do
8888+ for i in $out/lib/*.a $lib/lib/*.a; do
8889 name="$(basename "$i")"
8990 ext="${stdenv.hostPlatform.extensions.sharedLibrary}"
9091 if [ -e "$lib/lib/''${name%.a}$ext" ] || [ -e "''${i%.a}$ext" ]; then