mpvScripts.visualizer: simplify with buildLua

This commit is contained in:
nicoo
2023-12-09 21:36:15 +00:00
parent cd79e7c075
commit 8bf840c358
2 changed files with 3 additions and 15 deletions
@@ -23,7 +23,7 @@ in lib.recurseIntoAttrs
thumbfast = callPackage ./thumbfast.nix { inherit buildLua; };
thumbnail = callPackage ./thumbnail.nix { inherit buildLua; };
uosc = callPackage ./uosc.nix { inherit buildLua; };
visualizer = callPackage ./visualizer.nix { };
visualizer = callPackage ./visualizer.nix { inherit buildLua; };
vr-reversal = callPackage ./vr-reversal.nix { };
webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { };
cutter = callPackage ./cutter.nix { };
@@ -1,9 +1,9 @@
{
lib,
stdenvNoCC,
buildLua,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
buildLua {
pname = "visualizer";
version = "unstable-2023-08-13";
@@ -14,21 +14,9 @@ stdenvNoCC.mkDerivation {
sha256 = "zzB4uBc1M2Gdr/JKY2uk8MY0hmQl1XeomkfTzuM45oE=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/mpv/scripts
cp visualizer.lua $out/share/mpv/scripts
runHook postInstall
'';
passthru.scriptName = "visualizer.lua";
meta = with lib; {
description = "various audio visualization";
homepage = "https://github.com/mfcc64/mpv-scripts";
platforms = platforms.all;
maintainers = with maintainers; [kmein];
};
}