anchor.diff:  
     buildInputs = [ kerberos ncurses ];
   
  -  patches = [ ./bosserver.patch ./cross-build.patch ] ++ stdenv.lib.optional (tsmbac != null) ./tsmbac.patch;
  +  patches = [ ./bosserver.patch ./cross-build.patch ] ++ optional (tsmbac != null) ./tsmbac.patch;
   
     outputs = [ "out" "dev" "man" "doc" "server" ];
   
  -  enableParallelBuilding = true;
  +  enableParallelBuilding = false;
   
     setOutputFlags = false;
   
  
positive.code: { stdenv, buildPackages, fetchurl, which, autoconf, automake, flex
  , yacc , glibc, perl, kerberos, libxslt, docbook_xsl
  , docbook_xml_dtd_43 , libtool_2, removeReferencesTo
  , ncurses # Extra ncurses utilities. Only needed for debugging.
  , tsmbac ? null # Tivoli Storage Manager Backup Client from IBM
  }:
  
  with (import ./srcs.nix { inherit fetchurl; });
  
  stdenv.mkDerivation {
    pname = "openafs";
    inherit version srcs;
  
  
negative.code: 
      ./regen.sh
  
  
      configureFlagsArray=(
        "--with-gssapi"
        "--sysconfdir=/etc"
        "--localstatedir=/var"
        "--disable-kernel-module"
        "--disable-fuse-client"
        "--with-docbook-stylesheets=${docbook_xsl}/share/xml/docbook-xsl"
        ${optionalString (tsmbac != null) "--enable-tivoli-tsm"}
        ${optionalString (ncurses == null) "--disable-gtx"}
        "--disable-linux-d_splice-alias-extra-iput"
        "--libexecdir=$server/libexec"
      )
    '' + optionalString (tsmbac != null) ''
      export XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I${tsmbac}/lib64/sample -DXBSA_TSMLIB=\\\"${tsmbac}/lib64/libApiTSM64.so\\\""
      export XBSA_XLIBS="-ldl"
    '';
  