Merge pull request #179631 from lunik1/mpv-playlistmanager-2022-06-28

mpvScripts.mpv-playlistmanager: unstable-2021-09-27 → unstable-2022-06-28
This commit is contained in:
Mario Rodas 2022-10-09 00:26:50 -05:00 committed by GitHub
commit ce1a1bdb98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,27 +1,26 @@
{ lib, stdenvNoCC, fetchFromGitHub, youtube-dl }:
{ lib, stdenvNoCC, fetchFromGitHub, yt-dlp }:
stdenvNoCC.mkDerivation rec {
pname = "mpv-playlistmanager";
version = "unstable-2021-09-27";
version = "unstable-2022-08-26";
src = fetchFromGitHub {
owner = "jonniek";
repo = "mpv-playlistmanager";
rev = "9a759b300c92b55e82be5824fe058e263975741a";
sha256 = "qMzDJlouBptwyNdw2ag4VKEtmkQNUlos0USPerBAV/s=";
rev = "07393162f7f78f8188e976f616f1b89813cec741";
sha256 = "sha256-Vgh5F6c90ijp5LVrP2cdAOXo+QtJ9aXI9G/3C2HGqd4=";
};
postPatch = ''
substituteInPlace playlistmanager.lua \
--replace "'youtube-dl'" "'${youtube-dl}/bin/youtube-dl'" \
--replace "youtube-dl" "${lib.getBin yt-dlp}/bin/yt-dlp"
'';
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/mpv/scripts
cp playlistmanager.lua $out/share/mpv/scripts
install -D -t $out/share/mpv/scripts playlistmanager.lua
runHook postInstall
'';