Files
nixpkgs/pkgs/applications/video/mpv/scripts/builtins.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.3 KiB
Nix

{
lib,
buildLua,
mpv-unwrapped,
}:
let
mkBuiltin =
name: args:
let
srcPath = "TOOLS/lua/${name}.lua";
in
buildLua (
lib.attrsets.recursiveUpdate rec {
inherit (mpv-unwrapped) src version;
pname = "mpv-${name}";
dontUnpack = true;
scriptPath = "${src}/${srcPath}";
meta = {
inherit (mpv-unwrapped.meta) license;
homepage = "https://github.com/mpv-player/mpv/blob/v${version}/${srcPath}";
};
} args
);
in
lib.recurseIntoAttrs (
lib.mapAttrs (name: lib.makeOverridable (mkBuiltin name)) {
acompressor.meta = {
description = "Script to toggle and control ffmpeg's dynamic range compression filter";
maintainers = with lib.maintainers; [ nicoo ];
};
autocrop.meta.description = "This script uses the lavfi cropdetect filter to automatically insert a crop filter with appropriate parameters for the currently playing video";
autodeint.meta.description = "This script uses the lavfi idet filter to automatically insert the appropriate deinterlacing filter based on a short section of the currently playing video";
autoload.meta = {
description = "This script automatically loads playlist entries before and after the currently played file";
maintainers = [ lib.maintainers.dawidsowa ];
};
}
)