mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
youtube-dl: 2020.03.08 -> 2020.03.24
https://github.com/ytdl-org/youtube-dl/releases/tag/2020.03.24
This commit is contained in:
parent
0bfd0187da
commit
d6273a5934
@ -10,7 +10,7 @@
|
|||||||
, rtmpSupport ? true
|
, rtmpSupport ? true
|
||||||
, phantomjsSupport ? false
|
, phantomjsSupport ? false
|
||||||
, hlsEncryptedSupport ? true
|
, hlsEncryptedSupport ? true
|
||||||
, makeWrapper }:
|
, installShellFiles, makeWrapper }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
|
||||||
@ -18,14 +18,14 @@ buildPythonPackage rec {
|
|||||||
# The websites youtube-dl deals with are a very moving target. That means that
|
# The websites youtube-dl deals with are a very moving target. That means that
|
||||||
# downloads break constantly. Because of that, updates should always be backported
|
# downloads break constantly. Because of that, updates should always be backported
|
||||||
# to the latest stable release.
|
# to the latest stable release.
|
||||||
version = "2020.03.08";
|
version = "2020.03.24";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
|
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1xbka14wnalcqkhibfcqw8f5bw1m9b1f44719yifv1jk0614q4bn";
|
sha256 = "05l4asakakxn53wrvxn6c03fd80zdizdbj6r2cj8c1ja3sj9i8s5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||||
buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
|
buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
|
||||||
propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
|
propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
|
||||||
|
|
||||||
@ -46,8 +46,7 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/zsh/site-functions
|
installShellCompletion youtube-dl.zsh
|
||||||
cp youtube-dl.zsh $out/share/zsh/site-functions/_youtube-dl
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Requires network
|
# Requires network
|
||||||
|
Loading…
Reference in New Issue
Block a user