postgresql: Only use /run/postgresql on Linux

We only have /run on modern GNU/Linux systems and it's not necessarily
the case for Mac OS X or *BSD, so let's add the patch only if
stdenv.isLinux.

Thanks to @danbst for catching this.

Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
aszlig 2019-03-16 12:28:20 +01:00
parent 116bdc9f55
commit f5106019d3
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691

View File

@ -60,8 +60,7 @@ let
(if atLeast "9.6" then ./patches/less-is-more-96.patch else ./patches/less-is-more.patch)
(if atLeast "9.6" then ./patches/hardcode-pgxs-path-96.patch else ./patches/hardcode-pgxs-path.patch)
./patches/specify_pkglibdir_at_runtime.patch
./patches/socketdir-in-run.patch
];
] ++ lib.optional stdenv.isLinux ./patches/socketdir-in-run.patch;
installTargets = [ "install-world" ];