Skip to content

Commit 4ea537a

Browse files
postgres: fix new package jit
1 parent f1d7450 commit 4ea537a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/postgres.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ in
3939
environment.systemPackages = lib.optional cfgu.enable (
4040
let
4141
# conditions copied from nixos/modules/services/databases/postgresql.nix
42+
newPackage = if cfg.enableJIT then cfgu.newPackage.withJIT else cfgu.newPackage;
4243
newData = "/var/lib/postgresql/${cfgu.newPackage.psqlSchema}";
43-
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages cfg.extraPlugins}/bin";
44+
newBin = "${if cfg.extraPlugins == [] then newPackage else newPackage.withPackages cfg.extraPlugins}/bin";
4445

4546
oldPackage = if cfg.enableJIT then cfg.package.withJIT else cfg.package;
4647
oldData = config.services.postgresql.dataDir;

0 commit comments

Comments
 (0)