Merge pull request #219348 from nbraud/mpvScript/acompressor

This commit is contained in:
Maciej Krüger 2023-04-09 22:44:30 +02:00 committed by GitHub
commit 3577487514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 0 deletions

View file

@ -10930,6 +10930,15 @@
githubId = 8214542;
name = "Nicolò Balzarotti";
};
nicoo = {
email = "nicoo@debian.org";
github = "nbraud";
githubId = 1155801;
name = "nicoo";
keys = [{
fingerprint = "E44E 9EA5 4B8E 256A FB73 49D3 EC9D 3708 72BC 7A8C";
}];
};
nidabdella = {
name = "Mohamed Nidabdella";
email = "nidabdella.mohamed@gmail.com";

View file

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

View file

@ -32192,6 +32192,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 { };