anchor.diff:  , perlPackages
   , pythonBindings ? true
   , tclBindings ? true
  -, perlBindings ? true
  +, perlBindings ? stdenv.buildPlatform == stdenv.hostPlatform
  +, buildPackages
   }:
   
   stdenv.mkDerivation rec {
  
positive.code:     sha256 = "10788mgrhbc57zpzakcxv5aqnr2819pcshml6fbh8zvnkja562y9";
    };
  
    nativeBuildInputs = [
      swig
      pkg-config
      libtool
    ];
  
    buildInputs = [
      gd
  
negative.code:     libusb-compat-0_1
      boost
    ] ++ lib.optionals pythonBindings [ python3 ncurses ]
      ++ lib.optionals tclBindings [ tcl ];
  
  
    configureFlags = [
      "CC_FOR_BUILD=${stdenv.cc.targetPrefix}cc"
    ] ++ lib.optionals perlBindings [ "--with-perl-binding" ]
      ++ lib.optionals tclBindings [ "--with-tcl-binding" "--with-tcl=${tcl}/lib/" ]
      ++ lib.optionals pythonBindings [ "--with-python-binding" ];
  
  