nixpkgs/pkgs/desktops/pantheon/apps/switchboard-plugs/mouse-touchpad/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pantheon
, meson
, ninja
, pkgconfig
, vala
, libgee
, granite
, gtk3
, switchboard
, elementary-settings-daemon
, glib
}:
2018-08-20 20:31:18 +00:00
stdenv.mkDerivation rec {
pname = "switchboard-plug-mouse-touchpad";
version = "2.3.0";
2018-08-20 20:31:18 +00:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "1cg69nbdf4mcr16mi71aw9j8877lyj8yxjfk9bd3sml8f4fh7mmr";
2018-08-20 20:31:18 +00:00
};
patches = [
./hardcode-settings-daemon-gsettings.patch
];
postPatch = ''
substituteInPlace src/Views/Clicking.vala \
--subst-var-by GSD_GSETTINGS ${glib.getSchemaPath elementary-settings-daemon}
'';
2018-08-20 20:31:18 +00:00
passthru = {
updateScript = pantheon.updateScript {
repoName = pname;
};
};
nativeBuildInputs = [
meson
ninja
pkgconfig
vala
];
buildInputs = [
glib
2018-08-20 20:31:18 +00:00
granite
gtk3
libgee
switchboard
];
meta = with stdenv.lib; {
description = "Switchboard Mouse & Touchpad Plug";
homepage = https://github.com/elementary/switchboard-plug-mouse-touchpad;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}