anchor.diff:      for path in mathematica MathKernel Mathematica WolframKernel wolfram math; do
         sed -i -e 's#export LD_LIBRARY_PATH$#export LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}#' $path
       done
  +
  +    # Fix xkeyboard config path for Qt
  +    for path in mathematica Mathematica; do
  +      line=$(grep -n QT_PLUGIN_PATH $path | sed 's/:.*//')
  +      sed -i -e "$line iexport QT_XKB_CONFIG_ROOT=\"${xkeyboard_config}/share/X11/xkb\"" $path
  +    done
     '';
   
     preFixup = ''
  
positive.code:       throw "Mathematica requires i686-linux or x86_64 linux";
  in
  stdenv.mkDerivation rec {
    version = "11.0.1";
  
    name = "mathematica-${version}";
  
  
negative.code: , opencv
  , openssl
  , unixODBC
  , xkeyboard_config
  , xorg
  , zlib
  , libxml2
  