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 { };