Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0a149afaa22c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 192325c47fe6
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 4, 2021

  1. Copy the full SHA
    1dbc32c View commit details

Commits on Jan 5, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6e53a6c View commit details
  2. Merge pull request #108370 from cole-h/streamlink

    streamlink: 1.5.0 -> 2.0.0, streamlink-twitch-gui-bin: 1.10.0 -> 1.11.0
    worldofpeace authored Jan 5, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    192325c View commit details
Showing with 56 additions and 14 deletions.
  1. +29 −8 pkgs/applications/video/streamlink-twitch-gui/bin.nix
  2. +27 −6 pkgs/applications/video/streamlink/default.nix
37 changes: 29 additions & 8 deletions pkgs/applications/video/streamlink-twitch-gui/bin.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
{ autoPatchelfHook, fetchurl, lib, makeDesktopItem, makeWrapper, stdenv, wrapGAppsHook
, at-spi2-core, atk, alsaLib, cairo, cups, dbus, expat, gcc-unwrapped
, gdk-pixbuf, glib, pango, gtk3-x11, libudev0-shim, libuuid, nss, nspr, xorg
, streamlink }:

{ autoPatchelfHook
, fetchurl
, lib
, makeDesktopItem
, makeWrapper
, stdenv
, wrapGAppsHook
, at-spi2-core
, atk
, alsaLib
, cairo
, cups
, dbus
, expat
, gcc-unwrapped
, gdk-pixbuf
, glib
, pango
, gtk3-x11
, libudev0-shim
, libuuid
, nss
, nspr
, xorg
, streamlink
}:
let
basename = "streamlink-twitch-gui";
runtimeLibs = lib.makeLibraryPath [ libudev0-shim ];
@@ -16,16 +37,16 @@ let
in
stdenv.mkDerivation rec {
pname = "${basename}-bin";
version = "1.10.0";
version = "1.11.0";

src = fetchurl {
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-${arch}.tar.gz";
sha256 =
if arch == "linux64"
then
"17s9zbzj4pgz9mxxwjbp3788afkddc9s3p7xp28y5084z9wwzph2"
"0y96nziavvpdvrpn58p6a175kaa8cgadp19rnbm250x9cypn1d9y"
else
"1pww05hr48m6v0g1sz48g1c7p615lig3s12l21xgyz4gkjzmjy22";
"0sfmhqf55w7wavqy4idsqpkf5p7l8sapjxap6xvyzpz4z5z6xr7y";
};

nativeBuildInputs = with xorg; [
33 changes: 27 additions & 6 deletions pkgs/applications/video/streamlink/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,42 @@
{ stdenv, pythonPackages, fetchFromGitHub, rtmpdump, ffmpeg_3 }:
{ lib
, pythonPackages
, fetchFromGitHub
, rtmpdump
, ffmpeg_3
}:

pythonPackages.buildPythonApplication rec {
version = "1.5.0";
pname = "streamlink";
version = "2.0.0";
disabled = pythonPackages.pythonOlder "3.5.0";

src = fetchFromGitHub {
owner = "streamlink";
repo = "streamlink";
rev = version;
sha256 = "00pishpyim3mcvr9njcbfhj79j85b5xhkslk3mspc2csqknw4k61";
sha256 = "+W9Nu5Ze08r7IlUZOkkVOz582E1Bbj0a3qIQHwxSmj8=";
};

checkInputs = with pythonPackages; [ pytest mock requests-mock freezegun ];
checkInputs = with pythonPackages; [
pytest
mock
requests-mock
freezegun
];

propagatedBuildInputs = (with pythonPackages; [ pycryptodome requests iso-639 iso3166 websocket_client isodate ]) ++ [ rtmpdump ffmpeg_3 ];
propagatedBuildInputs = (with pythonPackages; [
pycryptodome
requests
iso-639
iso3166
websocket_client
isodate
]) ++ [
rtmpdump
ffmpeg_3
];

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/streamlink/streamlink";
description = "CLI for extracting streams from various websites to video player of your choosing";
longDescription = ''