Skip to content

Commit 1c5d262

Browse files
committed
fix: restore revision support for orioledb builds (introduced it #1880)
Keep revision support that was accidentally simplified during nixpkgs update. Restores conditional logic to support building orioledb from specific git revision hashes instead of only tags.
1 parent 4e99dcc commit 1c5d262

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

nix/postgresql/generic.nix

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,17 @@ let
8989
pname = pname + lib.optionalString jitSupport "-jit";
9090

9191
src =
92-
if (isOrioleDB) then
93-
fetchurl {
94-
url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${version}.tar.gz";
95-
inherit hash;
96-
}
92+
if isOrioleDB then
93+
if revision != null then
94+
fetchurl {
95+
url = "https://github.com/orioledb/postgres/archive/${revision}.tar.gz";
96+
inherit hash;
97+
}
98+
else
99+
fetchurl {
100+
url = "https://github.com/orioledb/postgres/archive/refs/tags/patches${version}.tar.gz";
101+
inherit hash;
102+
}
97103
else
98104
fetchurl {
99105
url = "mirror://postgresql/source/v${version}/${pname}-${version}.tar.bz2";

0 commit comments

Comments
 (0)