Skip to content

Commit

Permalink
discord: 0.0.13 -> 0.0.1
Browse files Browse the repository at this point in the history
Despite the version number confusion, this is a new version of
discord-canary, but since the build is now public/official, the version
number has been reset and the canary suffix has been dropped.

Note that this means that the executable has been renamed from
DiscordCanary to Discord
  • Loading branch information
Cray Elliott authored and globin committed Jan 26, 2017
1 parent 88606ff commit 2f367e0
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -7,12 +7,12 @@
stdenv.mkDerivation rec {

pname = "discord";
version = "0.0.13";
version = "0.0.1";
name = "${pname}-${version}";

src = fetchurl {
url = "https://cdn-canary.discordapp.com/apps/linux/${version}/${pname}-canary-${version}.tar.gz";
sha256 = "1pwb8y80z1bmfln5wd1vrhras0xygd1j15sib0g9vaig4mc55cs6";
url = "https://cdn.discordapp.com/apps/linux/${version}/${pname}-${version}.tar.gz";
sha256 = "10m3ixvhmxdw55awd84gx13m222qjykj7gcigbjabcvsgp2z63xs";
};

libPath = stdenv.lib.makeLibraryPath [
Expand All @@ -30,11 +30,11 @@ stdenv.mkDerivation rec {
# see pkgs/applications/misc/adobe-reader/builder.sh
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$out:$libPath" \
$out/DiscordCanary
$out/Discord
paxmark m $out/DiscordCanary
paxmark m $out/Discord
ln -s $out/DiscordCanary $out/bin/
ln -s $out/Discord $out/bin/
ln -s $out/discord.png $out/share/pixmaps
# Putting udev in the path won't work :(
Expand All @@ -44,9 +44,9 @@ stdenv.mkDerivation rec {

desktopItem = makeDesktopItem {
name = pname;
exec = "DiscordCanary";
exec = "Discord";
icon = pname;
desktopName = "Discord Canary";
desktopName = "Discord";
genericName = meta.description;
categories = "Network;InstantMessaging;";
};
Expand Down

0 comments on commit 2f367e0

Please sign in to comment.