Merge pull request #273200 from nbraud/mpvScripts/visualizer

mpvScripts.visualizer: unstable-2021-07-10 → 2023-08-13
This commit is contained in:
Maciej Krüger 2023-12-12 18:18:13 +01:00 committed by GitHub
commit a8d3e143c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 18 deletions

View file

@ -25,7 +25,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 { };
}

View file

@ -1,34 +1,22 @@
{
lib,
stdenvNoCC,
buildLua,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
buildLua {
pname = "visualizer";
version = "unstable-2021-07-10";
version = "unstable-2023-08-13";
src = fetchFromGitHub {
owner = "mfcc64";
repo = "mpv-scripts";
rev = "a0cd87eeb974a4602c5d8086b4051b5ab72f42e1";
sha256 = "1xgd1nd117lpj3ppynhgaa5sbkfm7l8n6c9a2fy8p07is2dkndrq";
rev = "7dbbfb283508714b73ead2a57b6939da1d139bd3";
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];
};
}