postgis: add explanatory comment

This commit is contained in:
Luke Worth 2019-08-01 08:16:59 +10:00
parent 7f54b9a2c6
commit 19011bad0c

View file

@ -46,12 +46,17 @@ stdenv.mkDerivation rec {
" \
"raster/scripts/python/Makefile";
mkdir -p $out/bin
# postgis' build system assumes it is being installed to the same place as postgresql, and looks
# for the postgres binary relative to $PREFIX. We gently support this system using an illusion.
ln -s ${postgresql}/bin/postgres $out/bin/postgres
'';
# create aliases for all commands adding version information
postInstall = ''
# Teardown the illusory postgres used for building; see postConfigure.
rm $out/bin/postgres
for prog in $out/bin/*; do # */
ln -s $prog $prog-${version}
done