nixos-configs/pkgs/mpv-scripts/default.nix
matt1432 fc712b5223
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: move mpv scripts and firefox addons to scopes in lgcyPkgs
2024-06-26 14:47:14 -04:00

16 lines
588 B
Nix

{pkgs, ...} @ inputs:
pkgs.lib.makeScope pkgs.newScope (mpv: let
buildLua =
mpv.callPackage
"${pkgs.path}/pkgs/applications/video/mpv/scripts/buildLua.nix" {};
buildLuaScript = file:
mpv.callPackage file (inputs // {inherit buildLua;});
in {
modernx = buildLuaScript ./modernx.nix;
pointer-event = buildLuaScript ./pointer-event.nix;
touch-gestures = buildLuaScript ./touch-gestures.nix;
kdialog-open-files = buildLuaScript ./kdialog-open-files.nix;
persist-properties = buildLuaScript ./persist-properties.nix;
undo-redo = buildLuaScript ./undo-redo.nix;
})