Unverified Commit 71ece62f authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

glom: provide bin dir of postgresql

By default `pg_config --bindir` is executed during configure phase to
get the bin directory containing all the postgres executables used by
glom.

This seems wrong given that the same postgresql_15 package will be
executed on build and on the final host platform which is not
necessarily the same. To avoid that, specify the bin dir manually via
the corresponding configure option.
parent 1220a4d4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ in stdenv.mkDerivation rec {
    python3.pkgs.pygobject3
    gtksourceview
    gtksourceviewmm
    postgresql_15 # for pg_config
    postgresql_15 # for postgresql utils
  ];

  enableParallelBuilding = true;
@@ -102,6 +102,7 @@ in stdenv.mkDerivation rec {

  configureFlags = [
    "--with-boost-python=boost_python${lib.versions.major python3.version}${lib.versions.minor python3.version}"
    "--with-postgres-utils=${lib.getBin postgresql_15}/bin"
  ];

  makeFlags = [