2019-08-05 11:02:06 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pantheon
|
2019-10-10 07:37:51 -07:00
|
|
|
, fetchpatch
|
2019-08-05 11:02:06 -07:00
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, libgee
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, libxml2
|
|
|
|
, libgnomekbd
|
|
|
|
, libxklavier
|
|
|
|
, xorg
|
|
|
|
, switchboard
|
|
|
|
}:
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard-plug-keyboard";
|
2019-03-07 14:06:04 -08:00
|
|
|
version = "2.3.5";
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-03-07 14:06:04 -08:00
|
|
|
sha256 = "17iijb7imxw5zv7vkrbc1vsp87k900yqgyv7ycz1gw37xb4klsyp";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = pantheon.updateScript {
|
2019-12-21 22:44:42 -08:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 13:31:18 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
libgnomekbd
|
|
|
|
libxklavier
|
|
|
|
switchboard
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./xkb.patch;
|
|
|
|
config = "${xorg.xkeyboardconfig}/share/X11/xkb/rules/evdev.xml";
|
|
|
|
})
|
2019-10-10 07:37:51 -07:00
|
|
|
# Fix build with latest vala.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/switchboard-plug-keyboard/commit/28fa960f607f0b1d67f2864965a079bdfc23e3a8.patch";
|
|
|
|
sha256 = "0121qcg8n7gkz7gpwrxc1cx0nnypj02zy2jmp3cks5r9sc0yi0hw";
|
|
|
|
})
|
2018-08-20 13:31:18 -07:00
|
|
|
];
|
|
|
|
|
2019-09-03 09:38:57 -07:00
|
|
|
PKG_CONFIG_SWITCHBOARD_2_0_PLUGSDIR = "${placeholder "out"}/lib/switchboard";
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Switchboard Keyboard Plug";
|
|
|
|
homepage = https://github.com/elementary/switchboard-plug-keyboard;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|