From 7a12cae1b10f86276a93a5f1d06c9ab4c0f6d7e2 Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Mon, 8 Nov 2021 11:33:49 +0000 Subject: [PATCH] postgresql_14: build with support for lz4 compression --- pkgs/servers/sql/postgresql/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix index 0d6e5d9afe7c..7da3ea0cedb6 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, systemd, libossp_uuid + , glibc, zlib, readline, openssl, icu, lz4, systemd, libossp_uuid , pkg-config, libxml2, tzdata # This is important to obtain a version of `libpq` that does not depend on systemd. @@ -23,6 +23,7 @@ let let atLeast = lib.versionAtLeast version; icuEnabled = atLeast "10"; + lz4Enabled = atLeast "14"; in stdenv.mkDerivation rec { pname = "postgresql"; @@ -41,6 +42,7 @@ let buildInputs = [ zlib readline openssl libxml2 ] ++ lib.optionals icuEnabled [ icu ] + ++ lib.optionals lz4Enabled [ lz4 ] ++ lib.optionals enableSystemd [ systemd ] ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ]; @@ -68,6 +70,7 @@ let (lib.optionalString enableSystemd "--with-systemd") (if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid") ] ++ lib.optionals icuEnabled [ "--with-icu" ] + ++ lib.optionals lz4Enabled [ "--with-lz4" ] ++ lib.optionals gssSupport [ "--with-gssapi" ]; patches =