nixpkgs/pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch
2023-09-16 18:19:06 +02:00

13 lines
299 B
Diff

--- a/src/common/exec.c
+++ b/src/common/exec.c
@@ -238,6 +238,9 @@
static int
normalize_exec_path(char *path)
{
+ // On NixOS we *want* stuff relative to symlinks.
+ return 0;
+
/*
* We used to do a lot of work ourselves here, but now we just let
* realpath(3) do all the heavy lifting.