nixpkgs/nixos
Maximilian Bosch e2fb651752
nixos/postgresql: fix enableJIT
Make sure that JIT is actually available when using

    services.postgresql = {
      enable = true;
      enableJIT = true;
      package = pkgs.postgresql_15;
    };

The current behavior is counter-intuitive because the docs state that
`enableJIT = true;` is sufficient even though it wasn't in that case
because the declared package doesn't have the LLVM dependency.

Fixed by using `package.withJIT` if `enableJIT = true;` and
`package.jitSupport` is `false`.

Also updated the postgresql-jit test to test for that case.
2023-03-29 08:39:47 +02:00
..
doc/manual postgresql: pass through JIT-enabled variant of non-JIT postgres and vice versa 2023-03-29 08:39:46 +02:00
lib nixos/test-driver: accept non-\w* filenames 2023-03-22 15:54:06 +00:00
maintainers treewide: fix backwards smart apostrophes 2023-02-06 07:24:42 -05:00
modules nixos/postgresql: fix enableJIT 2023-03-29 08:39:47 +02:00
tests nixos/postgresql: fix enableJIT 2023-03-29 08:39:47 +02:00
COPYING
default.nix
README
release-combined.nix nixos/release-*: finish dropping the conntrack tests 2023-03-04 09:28:09 +01:00
release-small.nix nixos/release-small.nix: add instructions for running individual jobs 2023-03-15 12:37:15 -07:00
release.nix nixos/manual: clean up default.nix a bit 2023-02-12 11:58:20 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.