anchor.diff:      "--with-static-modules=NONE"
       "--with-shared-modules=ALL"
       "--with-system-mitkrb5"
  -    "--with-system-mitkdc" krb5Full
  +    "--with-system-mitkdc=${krb5Full}"
       "--enable-fhs"
       "--sysconfdir=/etc"
       "--localstatedir=/var"
  
positive.code: , enablePam ? (!stdenv.isDarwin)
  }:
  
  with lib;
  
  stdenv.mkDerivation rec {
    pname = "samba";
  
negative.code: { stdenv
  , fetchurl
  , python
  , pkgconfig
  , perl
  , libxslt
  , docbook_xsl
  , rpcgen
  , fixDarwinDylibNames
  , docbook_xml_dtd_42
  , readline
  , popt
  , iniparser
  , libbsd
  , libarchive
  , libiconv
  , gettext
  , krb5Full
  , zlib
  , openldap
  , cups
  , pam
  , avahi
  , acl
  , libaio
  , liburing
  , fam
  , libceph
  , glusterfs
  , gnutls
  , ncurses
  , libunwind
  , systemd
  , jansson
  , lmdb
  , gpgme
  , libuuid
  
  , enableLDAP ? false
  , enablePrinting ? false
  