postgresql: refactor attributes

There is no need to call the `withoutJIT` passthru explicitly here - the
default is without JIT anyway. This allows us to change the passthru to
work differently *without* affecting every `postgresql_xx` top-level
package.
This commit is contained in:
Wolfgang Walther 2026-06-29 20:27:31 +02:00
commit a0b09dd7a1
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -24,7 +24,7 @@ let
let
attrName = if jitSupport then "${version}_jit" else version;
postgresql = import path { inherit self; };
attrValue = if jitSupport then postgresql.withJIT else postgresql.withoutJIT;
attrValue = if jitSupport then postgresql.withJIT else postgresql;
in
self.lib.nameValuePair attrName attrValue
) versions;