mpvScripts.convert: Refactor with `buildLua`

nicoo c2f3e206 22e859ae

+4 -10
+3 -9
pkgs/applications/video/mpv/scripts/convert.nix
··· 1 - { stdenvNoCC, fetchgit, lib 1 + { lib, fetchgit, buildLua 2 2 , yad, mkvtoolnix-cli, libnotify }: 3 3 4 - stdenvNoCC.mkDerivation { 4 + buildLua { 5 5 pname = "mpv-convert-script"; 6 6 version = "2016-03-18"; 7 7 src = fetchgit { ··· 22 22 'yad_exe = "${yad}/bin/yad"' \ 23 23 --replace 'notify_send_exe = "notify-send"' \ 24 24 'notify_send_exe = "${libnotify}/bin/notify-send"' \ 25 - 26 25 ''; 27 26 28 - dontBuild = true; 29 - installPhase = '' 30 - mkdir -p $out/share/mpv/scripts 31 - cp convert_script.lua $out/share/mpv/scripts 32 - ''; 33 - passthru.scriptName = "convert_script.lua"; 27 + scriptPath = "convert_script.lua"; 34 28 35 29 meta = with lib; { 36 30 description = "Convert parts of a video while you are watching it in mpv";
+1 -1
pkgs/applications/video/mpv/scripts/default.nix
··· 11 11 autodeint = callPackage ./autodeint.nix { }; 12 12 autoload = callPackage ./autoload.nix { }; 13 13 chapterskip = callPackage ./chapterskip.nix { inherit buildLua; }; 14 - convert = callPackage ./convert.nix { }; 14 + convert = callPackage ./convert.nix { inherit buildLua; }; 15 15 inhibit-gnome = callPackage ./inhibit-gnome.nix { }; 16 16 mpris = callPackage ./mpris.nix { }; 17 17 mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };