From 0d8cf8b60a6bba3196c80911d9096df076b1facb Mon Sep 17 00:00:00 2001 From: nicoo Date: Fri, 3 Mar 2023 12:07:23 +0000 Subject: [PATCH] mpvScripts.acompressor: init at 0.35.1 --- .../video/mpv/scripts/acompressor.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 28 insertions(+) create mode 100644 pkgs/applications/video/mpv/scripts/acompressor.nix diff --git a/pkgs/applications/video/mpv/scripts/acompressor.nix b/pkgs/applications/video/mpv/scripts/acompressor.nix new file mode 100644 index 000000000000..d10ef5f9df75 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/acompressor.nix @@ -0,0 +1,27 @@ +{ stdenvNoCC +, mpv-unwrapped +, lib +}: + +stdenvNoCC.mkDerivation rec { + pname = "mpv-acompressor"; + version = mpv-unwrapped.version; + + src = "${mpv-unwrapped.src.outPath}/TOOLS/lua/acompressor.lua"; + + dontBuild = true; + dontUnpack = true; + + installPhase = '' + install -Dm644 ${src} $out/share/mpv/scripts/acompressor.lua + ''; + + passthru.scriptName = "acompressor.lua"; + + meta = with lib; { + description = "Script to toggle and control ffmpeg's dynamic range compression filter."; + homepage = "https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/acompressor.lua"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ nicoo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 41dab119801b..4fda13715d14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31846,6 +31846,7 @@ with pkgs; mpvpaper = callPackage ../tools/wayland/mpvpaper { }; mpvScripts = recurseIntoAttrs { + acompressor = callPackage ../applications/video/mpv/scripts/acompressor.nix {}; autoload = callPackage ../applications/video/mpv/scripts/autoload.nix { }; convert = callPackage ../applications/video/mpv/scripts/convert.nix { }; inhibit-gnome = callPackage ../applications/video/mpv/scripts/inhibit-gnome.nix { };