about summary refs log tree commit diff
path: root/pkgs/servers/sql
diff options
context:
space:
mode:
authorLuke Worth <luke@worth.id.au>2019-08-01 08:16:59 +1000
committerLuke Worth <luke@worth.id.au>2019-08-01 08:50:41 +1000
commit19011bad0c512c42f68f1ed589df36ab66cf8ef6 (patch)
tree3061a7280965ca05b24598f5f390c35d42b5402a /pkgs/servers/sql
parent7f54b9a2c6f7ac61bcd9f7f8788cd4475b729bd6 (diff)
downloadnixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar.gz
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar.bz2
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar.lz
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar.xz
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.tar.zst
nixlib-19011bad0c512c42f68f1ed589df36ab66cf8ef6.zip
postgis: add explanatory comment
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r--pkgs/servers/sql/postgresql/ext/postgis.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix
index 5e38cb42d194..aa31d3163c8f 100644
--- a/pkgs/servers/sql/postgresql/ext/postgis.nix
+++ b/pkgs/servers/sql/postgresql/ext/postgis.nix
@@ -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