anchor.diff:      # wscript options
       "--with-system-mitkrb5" "${krb5_full}"
       "--with-system-mitkdc" "${krb5_full}/bin/krb5kdc"
  -    # "--without-ad-dc"
  -
  -    # ctdb/wscript
  -    (if isClient then null else "--enable-infiniband")
  -    #(if isClient then null else "--enable-pmda")
  -    (if isClient then null else "--enable-etcd-reclock")
  -    (if isClient then null else "--enable-ceph-reclock")
  -  ];
  -
  -  configurePhase = ''
  -    patchShebangs buildtools/bin/waf
  -    export PATH="$(pwd)/buildtools/bin:$PATH"
  -    configureFlagsArray+=("--prefix=$out")
  -    waf configure -j $NIX_BUILD_CORES $configureFlags "''${configureFlagsArray[@]}"
  -  '';
  -
  -  buildPhase = ''
  -    waf build -j $NIX_BUILD_CORES
  -  '';
  -
  -  installPhase = ''
  -    waf install -j $NIX_BUILD_CORES --destdir "$out"
  -
  +    "--with-experimental-mit-ad-dc"
  +  ];
  +
  +  preInstall = ''
  +    wafInstallFlagsArray+=('--destdir' "$out")
  +  '';
  +
  +  postInstall = ''
       dir="$out/$out"
       mv "$out/$out"/* "$out"
       while [ "$out" != "$dir" ]; do
  
positive.code:     optionals
      optionalString;
  
    version = "4.8.5";
    name = "samba${if isClient then "-client" else ""}-${version}";
  
    tarballUrls = [
  
negative.code: , gettext
  , libxslt
  , perl
  , python2Packages
  
  , acl
  , avahi
  , ceph
  , cups
  , dbus
  , glusterfs
  , gnutls
  , gpgme
  , jansson
  , krb5_full
  , ldb
  , libarchive
  , libcap
  , libgcrypt
  , libgpg-error
  , libtirpc
  , libunwind
  , lmdb
  , ncurses
  , openldap
  , pam
  , popt
  , readline
  , rpcsvc-proto
  , systemd_lib
  , talloc
  , tdb
  , tevent
  , zlib
  
  , type ? ""
  