anchor.diff:      # desktop item
       mkdir -p "$out/share"
       ln -s "${desktopItem}/share/applications" "$out/share/applications"
  -  '';
   
  -  postFixup = ''
       # executable wrapper
       makeWrapper '${electron}/bin/electron' "$out/bin/${executableName}" \
  -      --add-flags "$out/share/riot/electron" \
  -      "''${gappsWrapperArgs[@]}"
  +      --add-flags "$out/share/riot/electron"
     '';
   
     # Do not attempt generating a tarball for riot-web again.
  
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:   packageJSON = ./riot-desktop-package.json;
    yarnNix = ./riot-desktop-yarndeps.nix;
  
    nativeBuildInputs = [ makeWrapper ];
  
    installPhase = ''
      # resources
  