about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch')
-rw-r--r--nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch b/nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch
new file mode 100644
index 000000000000..355813ffe20e
--- /dev/null
+++ b/nixpkgs/pkgs/servers/sql/postgresql/hardcode-pgxs-path.patch
@@ -0,0 +1,17 @@
+--- a/src/bin/pg_config/pg_config.c
++++ b/src/bin/pg_config/pg_config.c
+@@ -220,11 +220,13 @@ show_sysconfdir(bool all)
+ static void
+ show_pgxs(bool all)
+ {
+-	char		path[MAXPGPATH];
++	char		path[MAXPGPATH] = "HARDCODED_PGXS_PATH";
+ 
+ 	if (all)
+ 		printf("PGXS = ");
++  /* commented out to be able to point to nix $out path
+ 	get_pkglib_path(mypath, path);
++  */
+ 	strlcat(path, "/pgxs/src/makefiles/pgxs.mk", sizeof(path));
+ 	cleanup_path(path);
+ 	printf("%s\n", path);