nixpkgs/pkgs/applications/video/mpv/scripts/acompressor.nix
2023-04-09 18:57:31 +00:00

28 lines
670 B
Nix

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