anchor.diff:        --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
         --set-rpath "${rpath}" \
         $out/lib/protonmail-bridge
  +
  +    substituteInPlace $out/share/applications/ProtonMail_Bridge.desktop \
  +      --replace "/usr/" "$out/" \
  +      --replace "Exec=protonmail-bridge" "Exec=$out/bin/protonmail-bridge"
     '';
   
     buildInputs = [ qtbase qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative ];
  
positive.code: 
      To work, gnome-keyring service must be enabled.
    '';
  
    desktopItem = makeDesktopItem {
      name = "protonmail-bridge";
      exec = "protonmail-bridge";
      icon = "protonmail-bridge";
      comment = stdenv.lib.replaceStrings ["\n"] [" "] description;
      desktopName = "ProtonMail Bridge";
      genericName = "ProtonMail Bridge for Linux";
      categories = "Utility;Security;Network;Email";
    };
  
  in mkDerivation {
    pname = "protonmail-bridge";
    inherit version;
  
negative.code:   '';
  
    installPhase = ''
      mkdir -p $out/{bin,lib,share}
  
      cp -r usr/lib/protonmail/bridge/protonmail-bridge $out/lib
      cp -r usr/share $out
  
      ln -s $out/lib/protonmail-bridge $out/bin/protonmail-bridge
    '';
  