1 { lib, stdenv, fetchFromGitHub, libX11 }:
3 stdenv.mkDerivation rec {
4 pname = "xkblayout-state";
7 src = fetchFromGitHub {
9 repo = "xkblayout-state";
11 sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
14 buildInputs = [ libX11 ];
18 cp xkblayout-state $out/bin
22 description = "A small command-line program to get/set the current XKB keyboard layout";
23 homepage = "https://github.com/nonpop/xkblayout-state";
24 license = licenses.gpl2;
25 maintainers = [ maintainers.jagajaga ];
26 platforms = platforms.linux;