anchor.diff:    packageJSON = ./riot-desktop-package.json;
     yarnNix = ./riot-desktop-yarndeps.nix;
   
  -  nativeBuildInputs = [ wrapGAppsHook ];
  -
  -  extraBuildInputs = [
  -    glib
  -    gtk3
  -  ];
  -
  -  dontWrapGApps = true;
  +  nativeBuildInputs = [ makeWrapper ];
   
     installPhase = ''
       # resources
  
positive.code: { stdenv, fetchFromGitHub
  , makeWrapper, makeDesktopItem, mkYarnPackage
  , electron_7, riot-web, gtk3
  , wrapGAppsHook, glib
  }:
  # Notes for maintainers:
  # * versions of `riot-web` and `riot-desktop` should be kept in sync.
  
negative.code:     # desktop item
      mkdir -p "$out/share"
      ln -s "${desktopItem}/share/applications" "$out/share/applications"
  
      # executable wrapper
      makeWrapper '${electron}/bin/electron' "$out/bin/${executableName}" \
        --add-flags "$out/share/riot/electron"
    '';
  
    # Do not attempt generating a tarball for riot-web again.
  