1{
2 stdenv,
3 lib,
4 fetchFromGitLab,
5 gettext,
6 meson,
7 ninja,
8 pkg-config,
9 glib,
10 gtk3,
11 libnotify,
12 librsvg,
13 libwnck,
14 libxklavier,
15 garcon,
16 libxfce4ui,
17 libxfce4util,
18 xfce4-panel,
19 xfconf,
20 gitUpdater,
21}:
22
23stdenv.mkDerivation (finalAttrs: {
24 pname = "xfce4-xkb-plugin";
25 version = "0.9.0";
26
27 src = fetchFromGitLab {
28 domain = "gitlab.xfce.org";
29 owner = "panel-plugins";
30 repo = "xfce4-xkb-plugin";
31 tag = "xfce4-xkb-plugin-${finalAttrs.version}";
32 hash = "sha256-yLlUKp7X8bylJs7ioQJ36mfqFlsiZXOgFXa0ZP7AG1E=";
33 };
34
35 strictDeps = true;
36
37 nativeBuildInputs = [
38 gettext
39 meson
40 ninja
41 pkg-config
42 ];
43
44 buildInputs = [
45 garcon
46 glib
47 gtk3
48 libnotify
49 librsvg
50 libxfce4ui
51 libxfce4util
52 libxklavier
53 libwnck
54 xfce4-panel
55 xfconf
56 ];
57
58 passthru.updateScript = gitUpdater { rev-prefix = "xfce4-xkb-plugin-"; };
59
60 meta = {
61 description = "Allows you to setup and use multiple keyboard layouts";
62 homepage = "https://gitlab.xfce.org/panel-plugins/xfce4-xkb-plugin";
63 license = lib.licenses.gpl2Plus;
64 teams = [ lib.teams.xfce ];
65 platforms = lib.platforms.linux;
66 };
67})