anchor.diff:       ];
   
       installPhase = ''
  -        mkdir -p $out/bin
  +        mkdir -p $out/{bin,share/pixmaps}
           mv * $out
   
           # Copying how adobe-reader does it,
  
positive.code: { stdenv, fetchurl
  , alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk_pixbuf
  , glib, gnome2, gtk2, libnotify, libX11, libXcomposite, libXcursor, libXdamage
  , libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, nspr, nss, pango
  , systemd, libXScrnSaver }:
  
  let version = "0.0.11"; in
  
  stdenv.mkDerivation {
  
      name = "discord-${version}";
  
      src = fetchurl {
          url = "https://cdn-canary.discordapp.com/apps/linux/${version}/discord-canary-${version}.tar.gz";
          sha256 = "1lk53vm14vr5pb8xxcx6hinpc2mkdns2xxv0bfzxvlmhfr6d6y18";
      };
  
  
negative.code:                  $out/DiscordCanary
  
          ln -s $out/DiscordCanary $out/bin/
          ln -s $out/discord.png $out/share/pixmaps
  
          # Putting udev in the path won't work :(
          ln -s ${systemd.lib}/lib/libudev.so.1 $out
          ln -s "${desktopItem}/share/applications" $out/share/
          '';
  
      desktopItem = makeDesktopItem {
        name = pname;
        exec = "DiscordCanary";
        icon = pname;
        desktopName = "Discord Canary";
        genericName = meta.description;
        categories = "Network;InstantMessaging;";
      };
  
      meta = with stdenv.lib; {
          description = "All-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone";
  