|
51 | 51 | inherit version; |
52 | 52 | pname = pname + lib.optionalString jitSupport "-jit"; |
53 | 53 |
|
54 | | - src = if (builtins.match "17_*" version != null) then |
| 54 | + src = if (builtins.match "[0-9][0-9]_.*" version != null) then |
55 | 55 | fetchurl { |
56 | 56 | url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${version}.tar.gz"; |
57 | 57 | inherit hash; |
|
64 | 64 |
|
65 | 65 | hardeningEnable = lib.optionals (!stdenv'.cc.isClang) [ "pie" ]; |
66 | 66 |
|
67 | | - outputs = [ "out" "lib" "doc" "man" ]; |
| 67 | + outputs = [ "out" "lib" ]; |
68 | 68 | setOutputFlags = false; # $out retains configureFlags :-/ |
69 | 69 |
|
70 | 70 | buildInputs = [ |
|
83 | 83 | ++ lib.optionals gssSupport [ libkrb5 ] |
84 | 84 | ++ lib.optionals stdenv'.isLinux [ linux-pam ] |
85 | 85 | ++ lib.optionals (!stdenv'.isDarwin) [ libossp_uuid ] |
86 | | - ++ lib.optionals (builtins.match "16_.*" version != null) [ |
| 86 | + ++ lib.optionals (builtins.match "[0-9][0-9]_.*" version != null) [ |
87 | 87 | perl bison flex docbook_xsl docbook_xml_dtd_45 docbook_xsl_ns libxslt |
88 | 88 | ]; |
89 | 89 |
|
|
97 | 97 |
|
98 | 98 | separateDebugInfo = true; |
99 | 99 |
|
100 | | - buildFlags = [ "world" ]; |
| 100 | + buildFlags = [ "world-bin" ]; |
101 | 101 |
|
102 | 102 | # Makes cross-compiling work when xml2-config can't be executed on the host. |
103 | 103 | # Fixed upstream in https://github.com/postgres/postgres/commit/0bc8cebdb889368abdf224aeac8bc197fe4c9ae6 |
|
138 | 138 | (if atLeast "13" then ./patches/socketdir-in-run-13+.patch else ./patches/socketdir-in-run.patch) |
139 | 139 | ]; |
140 | 140 |
|
141 | | - installTargets = [ "install-world" ]; |
| 141 | + installTargets = [ "install-world-bin" ]; |
142 | 142 |
|
143 | 143 | postPatch = '' |
144 | 144 | # Hardcode the path to pgxs so pg_config returns the path in $out |
|
288 | 288 | paths = f pkgs ++ [ |
289 | 289 | postgresql |
290 | 290 | postgresql.lib |
291 | | - postgresql.man # in case user installs this into environment |
| 291 | + #TODO RM postgresql.man # in case user installs this into environment |
292 | 292 | ]; |
293 | 293 | nativeBuildInputs = [ makeWrapper ]; |
294 | 294 |
|
|
0 commit comments