From 71ece62fd4fb14f652128ebfbc9a68305ec9bce3 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 29 Oct 2023 18:31:52 +0100 Subject: [PATCH] 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. --- pkgs/applications/misc/glom/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/glom/default.nix b/pkgs/applications/misc/glom/default.nix index 248d7e841b01..5c8eb94712a6 100644 --- a/pkgs/applications/misc/glom/default.nix +++ b/pkgs/applications/misc/glom/default.nix @@ -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 = [