anchor.diff:      ./patch-source3__libads__kerberos_keytab.c.patch
       ./4.x-no-persistent-install-dynconfig.patch
       ./4.x-fix-makeflags-parsing.patch
  +    (fetchpatch {
  +      name = "test-oLschema2ldif-fmemopen.patch";
  +      url = "https://gitlab.com/samba-team/samba/commit/5e517e57c9d4d35e1042a49d3592652b05f0c45b.patch";
  +      sha256 = "1bbldf794svsdvcbp649imghmj0jck7545d3k9xs953qkkgwkbxi";
  +    })
     ];
   
     nativeBuildInputs = optionals stdenv.isDarwin [ rpcgen fixDarwinDylibNames ];
  
positive.code:   buildInputs = [
      python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 /*
      docbook_xml_dtd_45 */ readline popt iniparser jansson
      libbsd libarchive zlib fam libiconv gettext libunwind krb5Full
    ] ++ optionals stdenv.isLinux [ libaio systemd ]
      ++ optional enableLDAP openldap
      ++ optional (enablePrinting && stdenv.isLinux) cups
      ++ optional enableMDNS avahi
      ++ optionals enableDomainController [ gnutls gpgme lmdb ]
      ++ optional enableRegedit ncurses
      ++ optional (enableCephFS && stdenv.isLinux) libceph
      ++ optionals (enableGlusterFS && stdenv.isLinux) [ glusterfs libuuid ]
  
negative.code: { lib, stdenv, fetchurl, fetchpatch, python, pkgconfig, perl, libxslt, docbook_xsl, rpcgen
  , fixDarwinDylibNames
  , docbook_xml_dtd_42, readline
  , popt, iniparser, libbsd, libarchive, libiconv, gettext
  