postgresql: return wrapper from withoutJIT passthru

Before this change, we would return:
- The postgresql derivation itself from `postgresql.withoutJIT`,
- A wrapper without any extensions at all, from
`postgresql_jit.withoutJIT`.

This changes makes it that every call to `.withJIT` and `.withoutJIT`
returns a wrapper and never the base derivation. More consistent and
easier to reason about.
This commit is contained in:
Wolfgang Walther
2026-06-29 20:30:39 +02:00
parent a0b09dd7a1
commit 5cf857ed82
+1 -1
View File
@@ -563,7 +563,7 @@ let
psqlSchema = lib.versions.major version;
withJIT = if jitSupport then this.withPackages (_: [ this.jit ]) else null;
withoutJIT = this;
withoutJIT = this.withPackages (_: [ ]);
pkgs =
let