diff options
author | nicoo <nicoo@mur.at> | 2023-10-18 08:34:17 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-11-15 20:19:26 +0000 |
commit | d518566a3076800978a2593c5f96cbf891983a26 (patch) | |
tree | 845accc8cf10464658eb2deae0b2be904cb5cfe2 /pkgs/applications/video/mpv | |
parent | 61202fc8677a6e9e0a82eb6610eeef28852fc790 (diff) | |
download | nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar.gz nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar.bz2 nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar.lz nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar.xz nixlib-d518566a3076800978a2593c5f96cbf891983a26.tar.zst nixlib-d518566a3076800978a2593c5f96cbf891983a26.zip |
mpvScripts.thumbfast: Refactor with `buildLua`
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/thumbfast.nix | 19 |
2 files changed, 5 insertions, 16 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index cdc641043f37..772194651748 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -20,7 +20,7 @@ in lib.recurseIntoAttrs quality-menu = callPackage ./quality-menu.nix { inherit buildLua; }; simple-mpv-webui = callPackage ./simple-mpv-webui.nix { }; sponsorblock = callPackage ./sponsorblock.nix { }; - thumbfast = callPackage ./thumbfast.nix { }; + thumbfast = callPackage ./thumbfast.nix { inherit buildLua; }; thumbnail = callPackage ./thumbnail.nix { inherit buildLua; }; uosc = callPackage ./uosc.nix { }; visualizer = callPackage ./visualizer.nix { }; diff --git a/pkgs/applications/video/mpv/scripts/thumbfast.nix b/pkgs/applications/video/mpv/scripts/thumbfast.nix index 88209f049f6b..f7a692efb3bc 100644 --- a/pkgs/applications/video/mpv/scripts/thumbfast.nix +++ b/pkgs/applications/video/mpv/scripts/thumbfast.nix @@ -1,7 +1,7 @@ -{ lib, stdenvNoCC, fetchFromGitHub, mpv-unwrapped }: +{ lib, fetchFromGitHub, buildLua, mpv-unwrapped }: -stdenvNoCC.mkDerivation { - name = "mpv-thumbfast"; +buildLua { + pname = "mpv-thumbfast"; version = "unstable-2023-06-04"; src = fetchFromGitHub { @@ -16,18 +16,7 @@ stdenvNoCC.mkDerivation { --replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"' ''; - dontBuild = true; - - installPhase = '' - runHook preInstall - - mkdir -p $out/share/mpv/scripts - cp -r thumbfast.lua $out/share/mpv/scripts/thumbfast.lua - - runHook postInstall - ''; - - passthru.scriptName = "thumbfast.lua"; + scriptPath = "thumbfast.lua"; meta = { description = "High-performance on-the-fly thumbnailer for mpv"; |