forked from mirrors/nixpkgs
mpvScripts.mpv-playlistmanager: unstable-2021-09-27 → unstable-2022-08-26
This commit is contained in:
parent
bd97c7ab87
commit
95df3315f2
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue