1{ lib, stdenv, fetchFromGitHub, cmake, libX11, libxkbfile }:
2
3stdenv.mkDerivation rec {
4 pname = "xkb-switch";
5 version = "1.8.5";
6
7 src = fetchFromGitHub {
8 owner = "ierton";
9 repo = "xkb-switch";
10 rev = version;
11 sha256 = "sha256-DZAIL6+D+Hgs+fkJwRaQb9BHrEjAkxiqhOZyrR+Mpuk=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ libX11 libxkbfile ];
16
17 meta = with lib; {
18 description = "Switch your X keyboard layouts from the command line";
19 homepage = "https://github.com/ierton/xkb-switch";
20 license = licenses.gpl2Plus;
21 maintainers = with maintainers; [ smironov ];
22 platforms = platforms.linux;
23 };
24}