feat(mpv): add touch and mouse gesture scripts

This commit is contained in:
matt1432 2023-12-16 21:14:33 -05:00
parent ae75463df5
commit 12cec706fa
4 changed files with 71 additions and 5 deletions

View file

@ -2,7 +2,12 @@
buildLua =
pkgs.callPackage
"${pkgs.path}/pkgs/applications/video/mpv/scripts/buildLua.nix" {};
buildLuaScript = file:
pkgs.callPackage file {inherit buildLua;};
in
pkgs.recurseIntoAttrs {
modernx = pkgs.callPackage ./modernx.nix {inherit buildLua;};
modernx = buildLuaScript ./modernx.nix;
pointer-event = buildLuaScript ./pointer-event.nix;
touch-gestures = buildLuaScript ./touch-gestures.nix;
}

View file

@ -0,0 +1,15 @@
{
fetchFromGitHub,
buildLua,
}:
buildLua {
pname = "pointer-event";
version = "unstable";
src = fetchFromGitHub {
owner = "christoph-heinrich";
repo = "mpv-pointer-event";
rev = "33c5ede5977817596ace5a9942a8c801ad3b3d28";
hash = "sha256-h2E8wiQX2Vh9qyi2VsXzeOE5vnD9Xin5HZ2Wu2LZUOY=";
};
}

View file

@ -0,0 +1,15 @@
{
fetchFromGitHub,
buildLua,
}:
buildLua {
pname = "touch-gestures";
version = "unstable";
src = fetchFromGitHub {
owner = "christoph-heinrich";
repo = "mpv-touch-gestures";
rev = "f4aa499f038997c1824ff3bfa64ee1d5438d72f2";
hash = "sha256-gmo6sTwN85WS/+wtlylfI22LxyZH48DvXYP5JGCnyU4=";
};
}