about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/discord
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-01-31 23:40:53 +0800
committerGitHub <noreply@github.com>2022-01-31 23:40:53 +0800
commit731d3e4a919a6ea67dac63d9ccae951efcc73c69 (patch)
tree34e44ee9dbd88b3b1eccd113c2bd19605706b707 /pkgs/applications/networking/instant-messengers/discord
parent3456ad997a54d3ceff0768c26ac8de38c0c87296 (diff)
parentadebfd54d499b89878bd4efb218785fa660cec77 (diff)
Merge pull request #155798 from devins2518/discord
discord-ptb: 0.0.58 -> 0.0.59
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/discord')
-rw-r--r--pkgs/applications/networking/instant-messengers/discord/default.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix
index 2f58ec414ab94..0672cb72425ed 100644
--- a/pkgs/applications/networking/instant-messengers/discord/default.nix
+++ b/pkgs/applications/networking/instant-messengers/discord/default.nix
@@ -7,11 +7,16 @@ let
     canary = "0.0.132";
   } else {
     stable = "0.0.264";
-    ptb = "0.0.58";
+    ptb = "0.0.59";
     canary = "0.0.280";
   };
   version = versions.${branch};
-  srcs = {
+  srcs = let
+    darwin-ptb = fetchurl {
+      url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
+      sha256 = "sha256-LS7KExVXkOv8O/GrisPMbBxg/pwoDXIOo1dK9wk1yB8=";
+    };
+  in {
     x86_64-linux = {
       stable = fetchurl {
         url =
@@ -34,11 +39,7 @@ let
         url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
         sha256 = "1jvlxmbfqhslsr16prsgbki77kq7i3ipbkbn67pnwlnis40y9s7p";
       };
-      ptb = fetchurl {
-        url =
-          "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
-        sha256 = "sha256-GwYUoPBbx9lSaRP1JwzI0UE9gEU+rV4a9BNPVSxHki0=";
-      };
+      ptb = darwin-ptb;
       canary = fetchurl {
         url =
           "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg";
@@ -46,13 +47,7 @@ let
       };
     };
     # Only PTB bundles a MachO Universal binary with ARM support.
-    aarch64-darwin = {
-      ptb = fetchurl {
-        url =
-          "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
-        sha256 = "sha256-GwYUoPBbx9lSaRP1JwzI0UE9gEU+rV4a9BNPVSxHki0=";
-      };
-    };
+    aarch64-darwin = { ptb = darwin-ptb; };
   };
   src = srcs.${stdenv.hostPlatform.system}.${branch};