backport streamlink

auto-flake-update
Yorick van Pelt 2017-02-01 19:40:36 +01:00
parent f20a255bce
commit f14c35f74d
2 changed files with 32 additions and 2 deletions

View File

@ -95,7 +95,7 @@
};
});
streamlink = overrideOlder pkgs.streamlink (attrs: rec {
streamlink = if builtins.hasAttr "streamlink" pkgs then (overrideOlder pkgs.streamlink (attrs: rec {
version = "0.3.0";
name = "streamlink-${version}";
@ -105,7 +105,7 @@
rev = "${version}";
sha256 = "1bjih6y21vmjmsk3xvhgc1innymryklgylyvjrskqw610niai59j";
};
});
})) else pkgs.callPackage ./streamlink.nix {};
yscripts = pkgs.callPackage ../dotfiles/bin {};

View File

@ -0,0 +1,30 @@
{ stdenv, pythonPackages, fetchFromGitHub, rtmpdump }:
pythonPackages.buildPythonApplication rec {
version = "0.3.0";
name = "streamlink-${version}";
src = fetchFromGitHub {
owner = "streamlink";
repo = "streamlink";
rev = "${version}";
sha256 = "1bjih6y21vmjmsk3xvhgc1innymryklgylyvjrskqw610niai59j";
};
propagatedBuildInputs = (with pythonPackages; [ pycrypto requests2 ]) ++ [ rtmpdump ];
meta = with stdenv.lib; {
homepage = https://github.com/streamlink/streamlink;
description = "CLI for extracting streams from various websites to video player of your choosing";
longDescription = ''
Streamlink is a CLI utility that pipes flash videos from online
streaming services to a variety of video players such as VLC, or
alternatively, a browser.
Streamlink is a fork of the livestreamer project.
'';
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = [ maintainers.dezgeg ];
};
}