Merge pull request #85086 from bhipple/u/discord

discord-{ptb,canary}: update to latest versions and fixup updateScript
This commit is contained in:
Ryan Mulligan 2020-04-12 10:38:52 -07:00 committed by GitHub
commit bd4145016d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 8 deletions

View File

@ -51,6 +51,8 @@ in stdenv.mkDerivation rec {
mimeType = "x-scheme-handler/discord";
};
passthru.updateScript = ./update-discord.sh;
meta = with stdenv.lib; {
description = "All-in-one cross-platform voice and text chat for gamers";
homepage = "https://discordapp.com/";

View File

@ -1,5 +1,5 @@
{ branch ? "stable", pkgs }:
# Generated by /maintainers/scripts/update-discord
# Generated by ./update-discord.sh
let
inherit (pkgs) callPackage fetchurl;
in {
@ -17,20 +17,20 @@ in {
pname = "discord-ptb";
binaryName = "DiscordPTB";
desktopName = "Discord PTB";
version = "0.0.18";
version = "0.0.19";
src = fetchurl {
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
sha256 = "1v9xph7shpmabwysbc08qqlkydzgsir8rwarrjf01xmpcpyia17g";
sha256 = "0wixmm16qsmgbr0l9144vl5pc3s2p4jqhl7cnc6kmgy1y4ig56ib";
};
};
canary = callPackage ./base.nix rec {
pname = "discord-canary";
binaryName = "DiscordCanary";
desktopName = "Discord Canary";
version = "0.0.102";
version = "0.0.103";
src = fetchurl {
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
sha256 = "1zl53vprkwbkfn3v0lddpp1swignqjxksi4qxl5zqj7482j372a4";
sha256 = "1d95q75ak4z6wkxlgcmkl7yk20gl7zf568b0xslz42hwx032fn4z";
};
};
}.${branch}

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash
# script to generate `pkgs/networking/instant-messengers/discord/default.nix`
# script to generate ./default.nix
set -e
exec >${1:?usage: $0 <output-file>}
exec >"${BASH_SOURCE%/*}/default.nix"
cat <<EOF
{ branch ? "stable", pkgs }:
# Generated by /maintainers/scripts/update-discord
# Generated by ./update-discord.sh
let
inherit (pkgs) callPackage fetchurl;
in {