anchor.diff:      sha256 = "sha256-JdsgcVF1w1xFPZxVcyS+GcWg4a1Bd4SvxFOuSdlz9SM=";
     };
   
  -  buildInputs = [ python3Packages.numpy glew glm freeglut libpng libxml2 tk freetype msgpack netcdf ];
  +  nativeBuildInputs = [ qt5.wrapQtAppsHook ];
  +  buildInputs = [ python3Packages.numpy python3Packages.pyqt5 glew glm libpng libxml2 freetype msgpack netcdf ];
     NIX_CFLAGS_COMPILE = "-I ${libxml2.dev}/include/libxml2";
     hardeningDisable = [ "format" ];
  -
  -  setupPyBuildFlags = [ "--glut" ];
   
     installPhase = ''
       python setup.py install --home="$out"
  
positive.code: , netcdf
  , glew
  , glm
  , freeglut
  , libpng
  , libxml2
  , tk
  , freetype
  , msgpack
  }:
  let
    pname = "pymol";
  
negative.code: 
    postInstall = with python3Packages; ''
      wrapProgram $out/bin/pymol \
        --prefix PYTHONPATH : ${lib.makeSearchPathOutput "lib" python3.sitePackages [ pyqt5 pyqt5.pyqt5_sip ]}
  
      mkdir -p "$out/share/icons/"
      ln -s ../../lib/python/pymol/pymol_path/data/pymol/icons/icon2.svg "$out/share/icons/pymol.svg"
      cp -r "${desktopItem}/share/applications/" "$out/share/"
    '';
  
    preFixup = ''
      wrapQtApp "$out/bin/pymol"
    '';
  
    meta = with lib; {
  