diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-08-09 19:28:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 19:28:01 +0100 |
commit | c61a740b7c85f4c2381c5be9852a32e195b29f1f (patch) | |
tree | ccc06f00a70231b5ebcc8cd676df30d3aaeb1884 /pkgs/applications/video | |
parent | 0ab34b2f9562cb90e2d5d4b7d43de64cff81217c (diff) | |
parent | 7f588939355d41902aa6949e0d1bb734505a40e5 (diff) |
Merge pull request #247990 from Lassulus/mpvScripts.visualizer
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]; + }; +} |