mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
37 lines
965 B
Nix
37 lines
965 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub, yt-dlp }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "mpv-playlistmanager";
|
|
version = "unstable-2022-08-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonniek";
|
|
repo = "mpv-playlistmanager";
|
|
rev = "07393162f7f78f8188e976f616f1b89813cec741";
|
|
sha256 = "sha256-Vgh5F6c90ijp5LVrP2cdAOXo+QtJ9aXI9G/3C2HGqd4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace playlistmanager.lua \
|
|
--replace "youtube-dl" "${lib.getBin yt-dlp}/bin/yt-dlp"
|
|
'';
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D -t $out/share/mpv/scripts playlistmanager.lua
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.scriptName = "playlistmanager.lua";
|
|
|
|
meta = with lib; {
|
|
description = "Mpv lua script to create and manage playlists";
|
|
homepage = "https://github.com/jonniek/mpv-playlistmanager";
|
|
license = licenses.unlicense;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ lunik1 ];
|
|
};
|
|
}
|