mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 21:35:36 +00:00
streamlink-twitch-gui-bin: drop (#559247)
This commit is contained in:
@@ -1,159 +0,0 @@
|
||||
{
|
||||
autoPatchelfHook,
|
||||
fetchurl,
|
||||
lib,
|
||||
copyDesktopItems,
|
||||
makeDesktopItem,
|
||||
makeWrapper,
|
||||
stdenv,
|
||||
wrapGAppsHook3,
|
||||
at-spi2-core,
|
||||
atk,
|
||||
alsa-lib,
|
||||
cairo,
|
||||
cups,
|
||||
dbus,
|
||||
expat,
|
||||
gcc-unwrapped,
|
||||
gdk-pixbuf,
|
||||
glib,
|
||||
pango,
|
||||
gtk3-x11,
|
||||
libudev0-shim,
|
||||
libuuid,
|
||||
libgbm,
|
||||
nss,
|
||||
nspr,
|
||||
libxtst,
|
||||
libxscrnsaver,
|
||||
libxrender,
|
||||
libxrandr,
|
||||
libxi,
|
||||
libxfixes,
|
||||
libxext,
|
||||
libxdamage,
|
||||
libxcursor,
|
||||
libxcomposite,
|
||||
libx11,
|
||||
libxcb,
|
||||
streamlink,
|
||||
}:
|
||||
let
|
||||
basename = "streamlink-twitch-gui";
|
||||
runtimeLibs = lib.makeLibraryPath [
|
||||
gtk3-x11
|
||||
libudev0-shim
|
||||
];
|
||||
runtimeBins = lib.makeBinPath [ streamlink ];
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "${basename}-bin";
|
||||
version = "2.5.3";
|
||||
|
||||
src =
|
||||
{
|
||||
x86_64-linux = fetchurl {
|
||||
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-linux64.tar.gz";
|
||||
hash = "sha256-ue5Ehj/dLOIJNJVq0Pd6EbA1hkVPz5m+3chVvEXaH6U=";
|
||||
};
|
||||
i686-linux = fetchurl {
|
||||
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-linux32.tar.gz";
|
||||
hash = "sha256-y252QhVsRakngdApOHgegMMhs61KTxL9gfPjBjaSKOI=";
|
||||
};
|
||||
}
|
||||
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
|
||||
nativeBuildInputs = [
|
||||
at-spi2-core
|
||||
atk
|
||||
alsa-lib
|
||||
autoPatchelfHook
|
||||
cairo
|
||||
copyDesktopItems
|
||||
cups.lib
|
||||
dbus.lib
|
||||
expat
|
||||
gcc-unwrapped
|
||||
gdk-pixbuf
|
||||
glib
|
||||
pango
|
||||
gtk3-x11
|
||||
libgbm
|
||||
nss
|
||||
nspr
|
||||
libuuid
|
||||
libx11
|
||||
libxcb
|
||||
libxcomposite
|
||||
libxcursor
|
||||
libxdamage
|
||||
libxext
|
||||
libxfixes
|
||||
libxi
|
||||
libxrandr
|
||||
libxrender
|
||||
libxscrnsaver
|
||||
libxtst
|
||||
makeWrapper
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [ streamlink ];
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,opt/${basename},share}
|
||||
|
||||
# Install all files, remove unnecessary ones
|
||||
cp -a . $out/opt/${basename}/
|
||||
rm -r $out/opt/${basename}/{{add,remove}-menuitem.sh,credits.html,icons/}
|
||||
ln -s $out/opt/${basename}/${basename} $out/bin/
|
||||
for res in 16 32 48 64 128 256; do
|
||||
install -Dm644 \
|
||||
icons/icon-"$res".png \
|
||||
$out/share/icons/hicolor/"$res"x"$res"/apps/${basename}.png
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--add-flags "--no-version-check" \
|
||||
--prefix LD_LIBRARY_PATH : ${runtimeLibs} \
|
||||
--prefix PATH : ${runtimeBins}
|
||||
)
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = basename;
|
||||
exec = basename;
|
||||
icon = basename;
|
||||
desktopName = "Streamlink Twitch GUI";
|
||||
genericName = meta.description;
|
||||
categories = [
|
||||
"AudioVideo"
|
||||
"Network"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Twitch.tv browser for Streamlink";
|
||||
longDescription = "Browse Twitch.tv and watch streams in your videoplayer of choice";
|
||||
homepage = "https://streamlink.github.io/streamlink-twitch-gui/";
|
||||
downloadPage = "https://github.com/streamlink/streamlink-twitch-gui/releases";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "streamlink-twitch-gui";
|
||||
maintainers = [ ];
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"i686-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -2401,6 +2401,7 @@ mapAliases {
|
||||
stract = throw "'stract' has been removed because the upstream project was archived on 2026-04-02"; # Added 2026-07-28
|
||||
strawberry-qt5 = throw "strawberry-qt5 has been replaced by strawberry"; # Converted to throw 2025-07-19
|
||||
strawberry-qt6 = throw "strawberry-qt6 has been replaced by strawberry"; # Added 2025-07-19
|
||||
streamlink-twitch-gui-bin = throw "'streamlink-twitch-gui-bin' has be removed due to lack on maintence and insecure electron"; # Added 2026-09-02
|
||||
stremio = throw "'stremio' has been removed as it depended on the vulnerable and outdated qt5 webengine. On Linux, consider using 'stremio-linux-shell' instead."; # Added 2026-02-11
|
||||
stringsWithDeps = warnAlias "'stringsWithDeps' has been removed from pkgs, use `lib.stringsWithDeps` instead" lib.stringsWithDeps; # Added 2025-10-30
|
||||
subberthehut = throw "'subberthehut' has been removed as it was unmaintained upstream"; # Added 2025-05-17
|
||||
|
||||
@@ -6653,8 +6653,6 @@ with pkgs;
|
||||
|
||||
stlink-gui = callPackage ../by-name/st/stlink/package.nix { withGUI = true; };
|
||||
|
||||
streamlink-twitch-gui-bin = callPackage ../applications/video/streamlink-twitch-gui/bin.nix { };
|
||||
|
||||
szurubooru = callPackage ../servers/web-apps/szurubooru { };
|
||||
|
||||
tclap = tclap_1_2;
|
||||
|
||||
Reference in New Issue
Block a user