File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 8181 else
8282 ( lib . warn "postgresql: argument enableSystemd is deprecated, please use systemdSupport instead." enableSystemd ) ;
8383
84+ isOrioleDB = ( builtins . match "[0-9][0-9]_.*" version ) != null ;
85+
8486 pname = "postgresql" ;
8587
8688 stdenv' = if jitSupport then llvmPackages . stdenv else stdenv ;
9092 pname = pname + lib . optionalString jitSupport "-jit" ;
9193
9294 src =
93- if isOrioleDB then
94- if revision != null then
95- fetchurl {
96- url = "https://github.com/orioledb/postgres/archive/${ revision } .tar.gz" ;
97- inherit hash ;
98- }
99- else
100- fetchurl {
101- url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${ version } .tar.gz" ;
102- inherit hash ;
103- }
95+ if ( isOrioleDB ) then
96+ fetchurl {
97+ url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${ version } .tar.gz" ;
98+ inherit hash ;
99+ }
104100 else
105101 fetchurl {
106102 url = "mirror://postgresql/source/v${ version } /${ pname } -${ version } .tar.bz2" ;
You can’t perform that action at this time.
0 commit comments