mpvScripts.mpv-playlistmanager: Refactor with `buildLua`

nicoo a3a5bf41 7189efcb

+4 -13
+1 -1
pkgs/applications/video/mpv/scripts/default.nix
··· 14 14 convert = callPackage ./convert.nix { }; 15 15 inhibit-gnome = callPackage ./inhibit-gnome.nix { }; 16 16 mpris = callPackage ./mpris.nix { }; 17 - mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { }; 17 + mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; }; 18 18 mpv-webm = callPackage ./mpv-webm.nix { }; 19 19 mpvacious = callPackage ./mpvacious.nix { }; 20 20 quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
+3 -12
pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix
··· 1 - { lib, stdenvNoCC, fetchFromGitHub, yt-dlp }: 1 + { lib, buildLua, fetchFromGitHub, yt-dlp }: 2 2 3 - stdenvNoCC.mkDerivation rec { 3 + buildLua rec { 4 4 pname = "mpv-playlistmanager"; 5 5 version = "unstable-2023-08-09"; 6 6 ··· 17 17 'youtube_dl_executable = "${lib.getBin yt-dlp}/bin/yt-dlp"', 18 18 ''; 19 19 20 - dontBuild = true; 21 - 22 - installPhase = '' 23 - runHook preInstall 24 - install -D -t $out/share/mpv/scripts playlistmanager.lua 25 - runHook postInstall 26 - ''; 27 - 28 - passthru.scriptName = "playlistmanager.lua"; 20 + scriptPath = "playlistmanager.lua"; 29 21 30 22 meta = with lib; { 31 23 description = "Mpv lua script to create and manage playlists"; 32 24 homepage = "https://github.com/jonniek/mpv-playlistmanager"; 33 25 license = licenses.unlicense; 34 - platforms = platforms.all; 35 26 maintainers = with maintainers; [ lunik1 ]; 36 27 }; 37 28 }