Merge #271846: libkrb5: fix build on darwin

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-12-03 14:37:25 +01:00
commit 360a5f0549
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, pkg-config, perl, bison, bootstrap_cmds
, openssl, openldap, libedit, keyutils, libverto
, openssl, openldap, libedit, keyutils, libverto, darwin
# for passthru.tests
, bind
@ -58,6 +58,11 @@ stdenv.mkDerivation rec {
++ lib.optionals (!libOnly) [ openldap libedit ]
++ lib.optionals withVerto [ libverto ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk; [
libs.xpc
frameworks.Kerberos
]);
sourceRoot = "krb5-${version}/src";
postPatch = ''