postgresql: use systemdLibs
Reduces the set of dependencies required to build PostgreSQL.
This commit is contained in:
parent
edaeb05d3e
commit
2f9c580c6f
@ -3,12 +3,12 @@ let
|
|||||||
generic =
|
generic =
|
||||||
# dependencies
|
# dependencies
|
||||||
{ stdenv, lib, fetchurl, fetchpatch, makeWrapper
|
{ stdenv, lib, fetchurl, fetchpatch, makeWrapper
|
||||||
, glibc, zlib, readline, openssl, icu, lz4, zstd, systemd, libossp_uuid
|
, glibc, zlib, readline, openssl, icu, lz4, zstd, systemdLibs, libossp_uuid
|
||||||
, pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin
|
, pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin
|
||||||
, linux-pam
|
, linux-pam
|
||||||
|
|
||||||
# This is important to obtain a version of `libpq` that does not depend on systemd.
|
# This is important to obtain a version of `libpq` that does not depend on systemd.
|
||||||
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd && !stdenv.hostPlatform.isStatic
|
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs && !stdenv.hostPlatform.isStatic
|
||||||
, enableSystemd ? null
|
, enableSystemd ? null
|
||||||
, gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic
|
, gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ let
|
|||||||
++ lib.optionals jitSupport [ llvmPackages.llvm ]
|
++ lib.optionals jitSupport [ llvmPackages.llvm ]
|
||||||
++ lib.optionals lz4Enabled [ lz4 ]
|
++ lib.optionals lz4Enabled [ lz4 ]
|
||||||
++ lib.optionals zstdEnabled [ zstd ]
|
++ lib.optionals zstdEnabled [ zstd ]
|
||||||
++ lib.optionals systemdSupport' [ systemd ]
|
++ lib.optionals systemdSupport' [ systemdLibs ]
|
||||||
++ lib.optionals pythonSupport [ python3 ]
|
++ lib.optionals pythonSupport [ python3 ]
|
||||||
++ lib.optionals gssSupport [ libkrb5 ]
|
++ lib.optionals gssSupport [ libkrb5 ]
|
||||||
++ lib.optionals stdenv'.isLinux [ linux-pam ]
|
++ lib.optionals stdenv'.isLinux [ linux-pam ]
|
||||||
|
Loading…
Reference in New Issue
Block a user