anchor.diff:      optionals
       optionalString;
   
  -  version = "4.8.5";
  +  version = "4.9.4";
     name = "samba${if isClient then "-client" else ""}-${version}";
   
     tarballUrls = [
  
positive.code:     # 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"
  
      dir="$out/$out"
      mv "$out/$out"/* "$out"
      while [ "$out" != "$dir" ]; do
  
negative.code:     # Remove unecessary components
      rm -r "$out"/var
      rm -r "$out"/libexec/ctdb/tests
      rm -r "$out"/lib/pkgconfig
      rm -r "$out"/lib/python2.7/site-packages/samba/tests
      rm "$out"/bin/ctdb_run{_cluster,}_tests
      rm -r "$out"/share/ctdb
      rm "$out"/bin/smbtorture
      rm "$out"/bin/*test
    '';
  
    preFixup = optionalString isClient ''
  