streamlink-twitch-gui-bin: 2.1.0 -> 2.4.1

This commit is contained in:
R. Ryantm 2023-09-17 08:58:43 +00:00 committed by Weijia Wang
parent fe443a862a
commit c9d145fa2a

View file

@ -29,27 +29,22 @@ let
basename = "streamlink-twitch-gui";
runtimeLibs = lib.makeLibraryPath [ gtk3-x11 libudev0-shim ];
runtimeBins = lib.makeBinPath [ streamlink ];
arch =
if stdenv.hostPlatform.system == "x86_64-linux"
then
"linux64"
else
"linux32";
in
stdenv.mkDerivation rec {
pname = "${basename}-bin";
version = "2.1.0";
version = "2.4.1";
src = fetchurl {
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-${arch}.tar.gz";
hash =
if arch == "linux64"
then
"sha256-kfCGhIgKMI0siDqnmIHSMk6RMHFlW6uwVsW48aiRua0="
else
"sha256-+jgTpIYb4BPM7Ixmo+YUeOX5OlQlMaRVEXf3WzS2lAI=";
src = {
x86_64-linux = fetchurl {
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-linux64.tar.gz";
hash = "sha256-uzD61Q1XIthAwoJHb0H4sTdYkUj0qGeGs1h0XFeV03E=";
};
i686-linux = fetchurl {
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-linux32.tar.gz";
hash = "sha256-akJEd94PmH9YeBud+l5+5QpbnzXAD0jDBKJM4h/t2EA=";
};
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
nativeBuildInputs = with xorg; [
at-spi2-core