Skip to content

Commit

Permalink
Merge: postgresql.withPackages: support withJIT and withoutJIT (NixOS…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 authored Oct 31, 2024
2 parents 9de9ad9 + 6cc9178 commit a34f8f6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pkgs/servers/sql/postgresql/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ let
withPackages = postgresqlWithPackages {
inherit buildEnv;
postgresql = this;
}
this.pkgs;
};

tests = {
postgresql-wal-receiver = import ../../../../nixos/tests/postgresql-wal-receiver.nix {
Expand Down Expand Up @@ -339,9 +338,9 @@ let
};
});

postgresqlWithPackages = { postgresql, buildEnv }: pkgs: f: buildEnv {
name = "postgresql-and-plugins-${postgresql.version}";
paths = f pkgs ++ [
postgresqlWithPackages = { postgresql, buildEnv }: f: buildEnv {
name = "${postgresql.pname}-and-plugins-${postgresql.version}";
paths = f postgresql.pkgs ++ [
postgresql
postgresql.man # in case user installs this into environment
];
Expand All @@ -350,6 +349,14 @@ let

passthru.version = postgresql.version;
passthru.psqlSchema = postgresql.psqlSchema;
passthru.withJIT = postgresqlWithPackages {
inherit buildEnv;
postgresql = postgresql.withJIT;
} f;
passthru.withoutJIT = postgresqlWithPackages {
inherit buildEnv;
postgresql = postgresql.withoutJIT;
} f;
};

in
Expand Down

0 comments on commit a34f8f6

Please sign in to comment.