Merge pull request #221726 from wegank/samba-darwin

samba: unbreak on darwin

authored by Weijia Wang and committed by GitHub 088089e8 2e29c38e

+2 -3
+2 -3
pkgs/servers/samba/4.x.nix
··· 103 103 libarchive 104 104 zlib 105 105 gnutls 106 - ldb 107 - talloc 108 106 libtasn1 109 107 tdb 110 - tevent 111 108 libxcrypt 112 109 ] ++ optionals stdenv.isLinux [ liburing systemd ] 113 110 ++ optionals stdenv.isDarwin [ libiconv ] 114 111 ++ optionals enableLDAP [ openldap.dev python3Packages.markdown ] 112 + ++ optionals (!enableLDAP && stdenv.isLinux) [ ldb talloc tevent ] 115 113 ++ optional (enablePrinting && stdenv.isLinux) cups 116 114 ++ optional enableMDNS avahi 117 115 ++ optionals enableDomainController [ gpgme lmdb python3Packages.dnspython ] ··· 149 147 ++ optionals (!enableLDAP) [ 150 148 "--without-ldap" 151 149 "--without-ads" 150 + ] ++ optionals (!enableLDAP && stdenv.isLinux) [ 152 151 "--bundled-libraries=!ldb,!pyldb-util!talloc,!pytalloc-util,!tevent,!tdb,!pytdb" 153 152 ] ++ optional enableLibunwind "--with-libunwind" 154 153 ++ optional enableProfiling "--with-profiling-data"