mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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.
(cherry picked from commit a0b09dd7a1)
This commit is contained in:
parent
350e5194b6
commit
8166a4ae06
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue