diff options
author | KierĂ¡n Meinhardt <kmein@posteo.de> | 2023-08-08 19:58:59 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-08-08 20:57:28 +0200 |
commit | 7f588939355d41902aa6949e0d1bb734505a40e5 (patch) | |
tree | 88d875da3433e357b82fb5abf883871ce1a8edc4 /pkgs/applications/video | |
parent | e0e6b6909977de63dab514efbf5470bc31e7055e (diff) |
mpvScripts.visualizer: init at unstable-2021-07-10
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/visualizer.nix | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 1a2bb9260840f..62c4e8bf9aa08 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -20,6 +20,7 @@ lib.recurseIntoAttrs thumbfast = callPackage ./thumbfast.nix { }; thumbnail = callPackage ./thumbnail.nix { }; uosc = callPackage ./uosc.nix { }; + visualizer = callPackage ./visualizer.nix { }; vr-reversal = callPackage ./vr-reversal.nix { }; webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { }; cutter = callPackage ./cutter.nix { }; diff --git a/pkgs/applications/video/mpv/scripts/visualizer.nix b/pkgs/applications/video/mpv/scripts/visualizer.nix new file mode 100644 index 0000000000000..a248b63d503a1 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/visualizer.nix @@ -0,0 +1,34 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: +stdenvNoCC.mkDerivation { + pname = "visualizer"; + version = "unstable-2021-07-10"; + + src = fetchFromGitHub { + owner = "mfcc64"; + repo = "mpv-scripts"; + rev = "a0cd87eeb974a4602c5d8086b4051b5ab72f42e1"; + sha256 = "1xgd1nd117lpj3ppynhgaa5sbkfm7l8n6c9a2fy8p07is2dkndrq"; + }; + + 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]; + }; +} |