Skip to content

Commit

Permalink
pkgsStatic.openldap: fix build
Browse files Browse the repository at this point in the history
Disable systemd support for static build, since systemd does not build
statically and upstreamt ENOTABUG it.
  • Loading branch information
Dmitry Bogatov committed May 24, 2023
1 parent a6a366d commit f9e32f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/development/libraries/openldap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, libtool
, openssl
, systemdMinimal
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdMinimal
, libxcrypt

# passthru
Expand Down Expand Up @@ -48,10 +49,10 @@ stdenv.mkDerivation rec {
libsodium
libtool
openssl
] ++ lib.optionals (stdenv.isLinux) [
libxcrypt # causes linking issues on *-darwin
systemdMinimal
];
]
# causes linking issues on *-darwin
++ lib.optional (stdenv.isLinux) libxcrypt
++ lib.optional systemdSupport systemdMinimal;

preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
MACOSX_DEPLOYMENT_TARGET=10.16
Expand Down

0 comments on commit f9e32f6

Please sign in to comment.