git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #138626 from Atemu/yt-dlp-ytdl-alias
commitaccf14a29b5d92ecb3bc0093e25fc164569ee4ce authorMaciej Krüger <mkg20001@gmail.com> dateMon 20 Sep 2021, 13:30 (5 years ago) parentea03083bac5fde
1 file changed+5
pkgs/tools/misc/yt-dlp/default.nix+5
pkgs/tools/misc/yt-dlp/default.nix+5
@@ -12,6 +12,7 @@
1212, rtmpSupport ? true
1313, phantomjsSupport ? false
1414, hlsEncryptedSupport ? true
15+, withAlias ? false # Provides bin/youtube-dl for backcompat
1516}:
1617
1718buildPythonPackage rec {
@@ -50,6 +51,10 @@ buildPythonPackage rec {
5051 # Requires network
5152 doCheck = false;
5253
54+ postInstall = lib.optionalString withAlias ''
55+ ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
56+ '';
57+
5358 meta = with lib; {
5459 homepage = "https://github.com/yt-dlp/yt-dlp/";
5560 description = "Command-line tool to download videos from YouTube.com and other sites (youtube-dl fork)";