my nixos/home-manager configuration
1{
2 callPackage,
3 fetchurl,
4 lib,
5 discord,
6}:
7callPackage ./linux.nix rec {
8 pname = "discord";
9 version = "0.0.132";
10
11 src = fetchurl {
12 url = "https://stable.dl2.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
13 hash = "sha256-DDt/zr+9sfvyPYUMKCXqEsRvk7wZaxbw2eCWlwxcVec=";
14 };
15
16 branch = "stable";
17 binaryName = desktopName;
18 desktopName = "Discord";
19 self = discord;
20
21 meta = {
22 description = "All-in-one cross-platform voice and text chat for gamers";
23 downloadPage = "https://discordapp.com/download";
24 homepage = "https://discordapp.com/";
25 license = lib.licenses.unfree;
26 mainProgram = "discord";
27 platforms = [ "x86_64-linux" ];
28 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
29 };
30}