about summary refs log tree commit diff
path: root/pkgs/tools/X11/xkb-switch/default.nix
blob: c22715d6181551116881b005df51a52ea7a90ffc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub, cmake, libX11, libxkbfile }:

stdenv.mkDerivation rec {
  pname = "xkb-switch";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "ierton";
    repo = "xkb-switch";
    rev = version;
    sha256 = "03wk2gg3py97kx0kjzbjrikld1sa55i6mgi398jbcbiyx2gjna78";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libX11 libxkbfile ];

  meta = with stdenv.lib; {
    description = "Switch your X keyboard layouts from the command line";
    homepage = https://github.com/ierton/xkb-switch;
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ smironov ];
    platforms = platforms.linux;
  };
}