72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
nix-update-script,
|
||
|
|
replaceVars,
|
||
|
|
meson,
|
||
|
|
ninja,
|
||
|
|
pkg-config,
|
||
|
|
vala,
|
||
|
|
libgee,
|
||
|
|
libxml2,
|
||
|
|
granite7,
|
||
|
|
gtk4,
|
||
|
|
switchboard,
|
||
|
|
gettext,
|
||
|
|
gnome-settings-daemon,
|
||
|
|
glib,
|
||
|
|
gala, # needed for gestures support
|
||
|
|
touchegg,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation rec {
|
||
|
|
pname = "switchboard-plug-mouse-touchpad";
|
||
|
|
version = "8.0.2";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "elementary";
|
||
|
|
repo = "switchboard-plug-mouse-touchpad";
|
||
|
|
rev = version;
|
||
|
|
sha256 = "sha256-332y3D3T90G6bDVacRm3a1p4mLK3vsW8sBvre5lW/mk=";
|
||
|
|
};
|
||
|
|
|
||
|
|
patches = [
|
||
|
|
(replaceVars ./fix-paths.patch {
|
||
|
|
touchegg = touchegg;
|
||
|
|
})
|
||
|
|
];
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
gettext # msgfmt
|
||
|
|
meson
|
||
|
|
ninja
|
||
|
|
pkg-config
|
||
|
|
vala
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
gala
|
||
|
|
glib
|
||
|
|
granite7
|
||
|
|
gtk4
|
||
|
|
libgee
|
||
|
|
libxml2
|
||
|
|
gnome-settings-daemon
|
||
|
|
switchboard
|
||
|
|
touchegg
|
||
|
|
];
|
||
|
|
|
||
|
|
passthru = {
|
||
|
|
updateScript = nix-update-script { };
|
||
|
|
};
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
description = "Switchboard Mouse & Touchpad Plug";
|
||
|
|
homepage = "https://github.com/elementary/switchboard-plug-mouse-touchpad";
|
||
|
|
license = licenses.gpl3Plus;
|
||
|
|
platforms = platforms.linux;
|
||
|
|
teams = [ teams.pantheon ];
|
||
|
|
};
|
||
|
|
}
|