File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 78
78
else
79
79
( lib . warn "postgresql: argument enableSystemd is deprecated, please use systemdSupport instead." enableSystemd ) ;
80
80
81
+ isOrioleDB = ( builtins . match "[0-9][0-9]_.*" version ) != null ;
82
+
81
83
pname = "postgresql" ;
82
84
83
85
stdenv' = if jitSupport then llvmPackages . stdenv else stdenv ;
87
89
pname = pname + lib . optionalString jitSupport "-jit" ;
88
90
89
91
src =
90
- if ( builtins . match "[0-9][0-9]_.*" version != null ) then
92
+ if ( isOrioleDB ) then
91
93
fetchurl {
92
94
url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${ version } .tar.gz" ;
93
95
inherit hash ;
125
127
++ lib . optionals ( ! stdenv' . isDarwin ) [ libossp_uuid ]
126
128
++
127
129
lib . optionals
128
- ( ( builtins . match "[0-9][0-9]_.*" version != null ) || ( lib . versionAtLeast version "17" ) )
130
+ ( isOrioleDB || ( lib . versionAtLeast version "17" ) )
129
131
[
130
132
perl
131
133
bison
207
209
excludes = [ "doc/*" ] ;
208
210
} ) )
209
211
]
212
+ ++ lib . optionals ( isOrioleDB ) [
213
+ ( fetchpatch ( {
214
+ url = "https://github.com/orioledb/postgres/commit/b7bad919e1b0ea3155514258fb19f45851536686.patch" ;
215
+ hash = "sha256-oZZzD8mxi5zswAy7qTOkFshxIz3nhAA6JmavEVT5LJk=" ;
216
+ } ) )
217
+ ]
210
218
++ lib . optionals stdenv' . hostPlatform . isMusl (
211
219
# Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141
212
220
map fetchurl ( lib . attrValues muslPatches )
You can’t perform that action at this time.
0 commit comments