fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / xk / xkblayout-state / package.nix
blob85798f902184789bff88db5a6101611879630ee7
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libX11,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "xkblayout-state";
10   version = "1b";
12   src = fetchFromGitHub {
13     owner = "nonpop";
14     repo = "xkblayout-state";
15     rev = "v${version}";
16     sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
17   };
19   buildInputs = [ libX11 ];
21   installPhase = ''
22     mkdir -p $out/bin
23     cp xkblayout-state $out/bin
24   '';
26   meta = with lib; {
27     description = "Small command-line program to get/set the current XKB keyboard layout";
28     homepage = "https://github.com/nonpop/xkblayout-state";
29     license = licenses.gpl2;
30     maintainers = [ maintainers.jagajaga ];
31     platforms = platforms.linux;
32     mainProgram = "xkblayout-state";
33   };