diff options
author | nicoo <nicoo@mur.at> | 2023-10-18 09:01:51 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-11-22 22:51:02 +0000 |
commit | 65b81db7bb98de7ac3ae7e4faa40089895f8370d (patch) | |
tree | 271950b5f03fda4ba682537bd8e0750b25333151 /pkgs/applications/video | |
parent | 8438431b9f87e36df21da4ab4d025ba8b4eff937 (diff) |
mpvScripts.simple-mpv-webui: Refactor with `buildLua`
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix | 13 |
2 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 63f986c2c41a2..9d16deb1c5293 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -18,7 +18,7 @@ in lib.recurseIntoAttrs mpv-webm = callPackage ./mpv-webm.nix { }; mpvacious = callPackage ./mpvacious.nix { inherit buildLua; }; quality-menu = callPackage ./quality-menu.nix { inherit buildLua; }; - simple-mpv-webui = callPackage ./simple-mpv-webui.nix { }; + simple-mpv-webui = callPackage ./simple-mpv-webui.nix { inherit buildLua; }; sponsorblock = callPackage ./sponsorblock.nix { }; thumbfast = callPackage ./thumbfast.nix { inherit buildLua; }; thumbnail = callPackage ./thumbnail.nix { inherit buildLua; }; diff --git a/pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix b/pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix index 01f2c3a099fa9..7920796b78403 100644 --- a/pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix +++ b/pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix @@ -1,6 +1,6 @@ -{ lib, stdenvNoCC +{ lib, buildLua , fetchFromGitHub }: -stdenvNoCC.mkDerivation rec { +buildLua rec { pname = "simple-mpv-ui"; version = "2.1.0"; @@ -11,12 +11,8 @@ stdenvNoCC.mkDerivation rec { sha256 = "1z0y8sdv5mbxznxqh43w5592ym688vkvqg7w26p8cinrhf09pbw8"; }; - dontBuild = true; - installPhase = '' - mkdir -p $out/share/mpv/scripts - cp -r webui.lua webui-page $out/share/mpv/scripts/ - ''; - passthru.scriptName = "webui.lua"; + scriptPath = "webui.lua"; + postInstall = "cp -a webui-page $out/share/mpv/scripts/"; meta = with lib; { description = "A web based user interface with controls for the mpv mediaplayer"; @@ -30,4 +26,3 @@ stdenvNoCC.mkDerivation rec { license = licenses.mit; }; } - |