about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2023-08-09 19:28:01 +0100
committerGitHub <noreply@github.com>2023-08-09 19:28:01 +0100
commitc61a740b7c85f4c2381c5be9852a32e195b29f1f (patch)
treeccc06f00a70231b5ebcc8cd676df30d3aaeb1884 /pkgs/applications/video
parent0ab34b2f9562cb90e2d5d4b7d43de64cff81217c (diff)
parent7f588939355d41902aa6949e0d1bb734505a40e5 (diff)
downloadnixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar.gz
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar.bz2
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar.lz
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar.xz
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.tar.zst
nixlib-c61a740b7c85f4c2381c5be9852a32e195b29f1f.zip
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.nix1
-rw-r--r--pkgs/applications/video/mpv/scripts/visualizer.nix34
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 1a2bb9260840..62c4e8bf9aa0 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 000000000000..a248b63d503a
--- /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];
+  };
+}