mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 11:41:43 +03:00
discord: add aarch64-darwin to platforms
The dmg includes the universal binary with ARM support now.
This commit is contained in:
parent
edc434e783
commit
be7eb483b8
@ -25,7 +25,11 @@ let
|
|||||||
sha256 = "sha256-/EWJC3hFIBqwHa9z4nMWR7CpoaqYY+pvw+1vcq4F0LU=";
|
sha256 = "sha256-/EWJC3hFIBqwHa9z4nMWR7CpoaqYY+pvw+1vcq4F0LU=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
aarch64-darwin = {
|
x86_64-darwin = {
|
||||||
|
stable = fetchurl {
|
||||||
|
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
|
||||||
|
sha256 = "1jvlxmbfqhslsr16prsgbki77kq7i3ipbkbn67pnwlnis40y9s7p";
|
||||||
|
};
|
||||||
ptb = fetchurl {
|
ptb = fetchurl {
|
||||||
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
|
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
|
||||||
sha256 = "sha256-LS7KExVXkOv8O/GrisPMbBxg/pwoDXIOo1dK9wk1yB8=";
|
sha256 = "sha256-LS7KExVXkOv8O/GrisPMbBxg/pwoDXIOo1dK9wk1yB8=";
|
||||||
@ -35,15 +39,7 @@ let
|
|||||||
sha256 = "0mqpk1szp46mih95x42ld32rrspc6jx1j7qdaxf01whzb3d4pi9l";
|
sha256 = "0mqpk1szp46mih95x42ld32rrspc6jx1j7qdaxf01whzb3d4pi9l";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Stable does not (yet) provide aarch64-darwin support. PTB and Canary, however, do.
|
aarch64-darwin = x86_64-darwin;
|
||||||
x86_64-darwin =
|
|
||||||
aarch64-darwin
|
|
||||||
// {
|
|
||||||
stable = fetchurl {
|
|
||||||
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
|
|
||||||
sha256 = "1jvlxmbfqhslsr16prsgbki77kq7i3ipbkbn67pnwlnis40y9s7p";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
src = srcs.${stdenv.hostPlatform.system}.${branch};
|
src = srcs.${stdenv.hostPlatform.system}.${branch};
|
||||||
|
|
||||||
@ -54,8 +50,7 @@ let
|
|||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ MP2E devins2518 artturin infinidoge ];
|
maintainers = with maintainers; [ MP2E devins2518 artturin infinidoge ];
|
||||||
platforms = [ "x86_64-linux" "x86_64-darwin" ]
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
++ lib.optionals (branch != "stable") [ "aarch64-darwin" ];
|
|
||||||
};
|
};
|
||||||
package =
|
package =
|
||||||
if stdenv.isLinux
|
if stdenv.isLinux
|
||||||
|
Loading…
Reference in New Issue
Block a user