mpvScripts.mpv-playlistmanager: Refactor with buildLua
This commit is contained in:
@@ -14,7 +14,7 @@ in lib.recurseIntoAttrs
|
||||
convert = callPackage ./convert.nix { };
|
||||
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
|
||||
mpris = callPackage ./mpris.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; };
|
||||
mpv-webm = callPackage ./mpv-webm.nix { };
|
||||
mpvacious = callPackage ./mpvacious.nix { };
|
||||
quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, yt-dlp }:
|
||||
{ lib, buildLua, fetchFromGitHub, yt-dlp }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
buildLua rec {
|
||||
pname = "mpv-playlistmanager";
|
||||
version = "unstable-2023-08-09";
|
||||
|
||||
@@ -17,21 +17,12 @@ stdenvNoCC.mkDerivation rec {
|
||||
'youtube_dl_executable = "${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";
|
||||
scriptPath = "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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user