anchor.diff: -{ stdenv, requireFile, dpkg, makeWrapper, gcc, libGLU_combined, xdg_utils,
  +{ stdenv, fetchurl, dpkg, makeWrapper, gcc, libGLU_combined, xdg_utils,
     dbus_tools, alsaLib, cups, fontconfig, glib, icu, libpng12,
  -  xkeyboard_config, gstreamer, zlib, libxslt, libxml2, sqlite, orc,
  +  xkeyboard_config, zlib, libxslt, libxml2, sqlite, orc,
     libX11, libXcursor, libXrandr, libxcb, libXi, libSM, libICE,
     libXrender, libXcomposite }:
   
  -let version = "2017-SP2"; in
  +let version = "2018SP2"; in
   stdenv.mkDerivation {
     name = "draftsight-${version}";
   
  
positive.code:           $out/bin/$exe \
            --prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
      done
      for lib in $out/draftsight/opt/dassault-systemes/DraftSight/Libraries/*.so; do
        # DraftSight ships with broken symlinks for some reason
        if [ -f $(readlink -f $lib) ]
        then
  
negative.code:         echo "Ignoring broken link $lib"
        fi
      done
      for lib in $out/draftsight/opt/dassault-systemes/DraftSight/APISDK/lib/cpp/*.so*; do
        if [ -f $(readlink $lib) ]
        then
          echo "Patching $lib..."
          chmod u+w $lib
          patchelf --set-rpath $libPath:\$ORIGIN/../Libraries $lib
        else
          echo "Ignoring broken link $lib"
        fi
      done
      # These libraries shouldn't really be here anyway:
      find $out/draftsight/opt/dassault-systemes/DraftSight/APISDK/Samples/C++ \
           -type d -name _lib | xargs rm -r
    '';
  
    # TODO: Figure out why HelpGuide segfaults at startup.
  