2021-11-24 00:44:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 19:02:06 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, substituteAll
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-05 19:02:06 +01:00
|
|
|
, vala
|
|
|
|
, libgee
|
2021-11-24 00:44:44 +00:00
|
|
|
, gnome-settings-daemon
|
2019-08-05 19:02:06 +01:00
|
|
|
, granite
|
2021-11-24 00:44:44 +00:00
|
|
|
, gsettings-desktop-schemas
|
2019-08-05 19:02:06 +01:00
|
|
|
, gtk3
|
2021-07-16 16:33:23 +01:00
|
|
|
, libhandy
|
2019-08-05 19:02:06 +01:00
|
|
|
, libxml2
|
|
|
|
, libgnomekbd
|
|
|
|
, libxklavier
|
2020-09-04 00:45:48 +01:00
|
|
|
, ibus
|
2021-11-24 00:44:44 +00:00
|
|
|
, onboard
|
2019-08-05 19:02:06 +01:00
|
|
|
, switchboard
|
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard-plug-keyboard";
|
2021-11-24 00:44:44 +00:00
|
|
|
version = "2.6.0";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-24 00:44:44 +00:00
|
|
|
sha256 = "sha256-Bl0T+8upTdBnLs03UIimcAg0LO40KwuMZRNSM+y/3Hc=";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
2020-09-04 00:45:48 +01:00
|
|
|
patches = [
|
|
|
|
./0001-Remove-Install-Unlisted-Engines-function.patch
|
2021-07-16 16:33:23 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2021-11-24 00:44:44 +00:00
|
|
|
inherit ibus onboard;
|
2021-07-16 16:33:23 +01:00
|
|
|
})
|
2020-09-04 00:45:48 +01:00
|
|
|
];
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 21:31:18 +01:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-11-24 00:44:44 +00:00
|
|
|
gnome-settings-daemon # media-keys
|
2018-08-20 21:31:18 +01:00
|
|
|
granite
|
2021-11-24 00:44:44 +00:00
|
|
|
gsettings-desktop-schemas
|
2018-08-20 21:31:18 +01:00
|
|
|
gtk3
|
2020-09-04 00:45:48 +01:00
|
|
|
ibus
|
2018-08-20 21:31:18 +01:00
|
|
|
libgee
|
|
|
|
libgnomekbd
|
2021-07-16 16:33:23 +01:00
|
|
|
libhandy
|
2018-08-20 21:31:18 +01:00
|
|
|
libxklavier
|
|
|
|
switchboard
|
|
|
|
];
|
|
|
|
|
2022-01-19 14:53:31 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 21:31:18 +01:00
|
|
|
description = "Switchboard Keyboard Plug";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/switchboard-plug-keyboard";
|
2018-08-20 21:31:18 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 16:00:51 +01:00
|
|
|
maintainers = teams.pantheon.members;
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
}
|