Merge pull request #221726 from wegank/samba-darwin

samba: unbreak on darwin
This commit is contained in:
Weijia Wang 2023-03-18 13:33:27 +02:00 committed by GitHub
commit 088089e8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,15 +103,13 @@ stdenv.mkDerivation rec {
libarchive
zlib
gnutls
ldb
talloc
libtasn1
tdb
tevent
libxcrypt
] ++ optionals stdenv.isLinux [ liburing systemd ]
++ optionals stdenv.isDarwin [ libiconv ]
++ optionals enableLDAP [ openldap.dev python3Packages.markdown ]
++ optionals (!enableLDAP && stdenv.isLinux) [ ldb talloc tevent ]
++ optional (enablePrinting && stdenv.isLinux) cups
++ optional enableMDNS avahi
++ optionals enableDomainController [ gpgme lmdb python3Packages.dnspython ]
@ -149,6 +147,7 @@ stdenv.mkDerivation rec {
++ optionals (!enableLDAP) [
"--without-ldap"
"--without-ads"
] ++ optionals (!enableLDAP && stdenv.isLinux) [
"--bundled-libraries=!ldb,!pyldb-util!talloc,!pytalloc-util,!tevent,!tdb,!pytdb"
] ++ optional enableLibunwind "--with-libunwind"
++ optional enableProfiling "--with-profiling-data"