diff options
author | Robert Scott <code@humanleg.org.uk> | 2022-11-26 13:30:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 13:30:30 +0000 |
commit | 16ae6d613612fae5a5bde822f8b0649c317c5a5a (patch) | |
tree | 643aa6db1e75574b62be9b70e3e62fd030d34d23 /pkgs | |
parent | 4df3a80eeb9a6de79142215938e704e1f516858e (diff) | |
parent | 621bb272a16599e1bf12d35dffed1840187e3b77 (diff) |
Merge pull request #202471 from timothyklim/staging
postgresql_15: build with support for zstd compression
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/sql/postgresql/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix index 1da94ceebd7d6..a8415b558e471 100644 --- a/pkgs/servers/sql/postgresql/default.nix +++ b/pkgs/servers/sql/postgresql/default.nix @@ -3,7 +3,7 @@ let generic = # dependencies { stdenv, lib, fetchurl, makeWrapper - , glibc, zlib, readline, openssl, icu, lz4, systemd, libossp_uuid + , glibc, zlib, readline, openssl, icu, lz4, zstd, systemd, libossp_uuid , pkg-config, libxml2, tzdata, libkrb5 # This is important to obtain a version of `libpq` that does not depend on systemd. @@ -22,6 +22,7 @@ let let atLeast = lib.versionAtLeast version; lz4Enabled = atLeast "14"; + zstdEnabled = atLeast "15"; in stdenv.mkDerivation rec { pname = "postgresql"; @@ -45,6 +46,7 @@ let icu ] ++ lib.optionals lz4Enabled [ lz4 ] + ++ lib.optionals zstdEnabled [ zstd ] ++ lib.optionals enableSystemd [ systemd ] ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ]; @@ -76,6 +78,7 @@ let (lib.optionalString enableSystemd "--with-systemd") (if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid") ] ++ lib.optionals lz4Enabled [ "--with-lz4" ] + ++ lib.optionals zstdEnabled [ "--with-zstd" ] ++ lib.optionals gssSupport [ "--with-gssapi" ] ++ lib.optionals stdenv.hostPlatform.isRiscV [ "--disable-spinlocks" ]; |