mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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:
commit
ce1a1bdb98
1 changed files with 6 additions and 7 deletions
|
@ -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