diff options
author | Robin Gloster <mail@glob.in> | 2017-02-02 04:28:17 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-07-29 21:25:10 +0200 |
commit | 2d6f0cb1764e24f186ff52002aedf230b6496af5 (patch) | |
tree | c02449f63af775f2d78d6542bb98a6dfcf5814a8 /pkgs/servers/sql | |
parent | c18167cd9eb7cda09070a5d0fd8a6d42a2c46c48 (diff) | |
download | nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar.gz nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar.bz2 nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar.lz nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar.xz nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.tar.zst nixlib-2d6f0cb1764e24f186ff52002aedf230b6496af5.zip |
postgresql: build < 9.5 with openssl 1.0.2
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r-- | pkgs/servers/sql/postgresql/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix index ba4fd8e3d38a..90dfd7702dc6 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, openssl_1_0_2, icu, systemd, libossp_uuid , pkgconfig, libxml2, tzdata # This is important to obtain a version of `libpq` that does not depend on systemd. @@ -32,9 +32,10 @@ let setOutputFlags = false; # $out retains configureFlags :-/ buildInputs = - [ zlib readline openssl libxml2 makeWrapper ] + [ zlib readline libxml2 makeWrapper ] ++ lib.optionals icuEnabled [ icu ] ++ lib.optionals enableSystemd [ systemd ] + ++ [ (if atLeast "9.5" then openssl else openssl_1_0_2) ] ++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ]; nativeBuildInputs = lib.optionals icuEnabled [ pkgconfig ]; |