backport streamlink
parent
f20a255bce
commit
f14c35f74d
|
@ -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";
|
version = "0.3.0";
|
||||||
name = "streamlink-${version}";
|
name = "streamlink-${version}";
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "1bjih6y21vmjmsk3xvhgc1innymryklgylyvjrskqw610niai59j";
|
sha256 = "1bjih6y21vmjmsk3xvhgc1innymryklgylyvjrskqw610niai59j";
|
||||||
};
|
};
|
||||||
});
|
})) else pkgs.callPackage ./streamlink.nix {};
|
||||||
|
|
||||||
|
|
||||||
yscripts = pkgs.callPackage ../dotfiles/bin {};
|
yscripts = pkgs.callPackage ../dotfiles/bin {};
|
||||||
|
|
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue