Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / xkblayout-state / default.nix
blob539a0f7d1a1d829a1555a83f190ea504992a7356
1 { lib, stdenv, fetchFromGitHub, libX11 }:
3 stdenv.mkDerivation rec {
4   pname = "xkblayout-state";
5   version = "1b";
7   src = fetchFromGitHub {
8     owner = "nonpop";
9     repo = "xkblayout-state";
10     rev = "v${version}";
11     sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
12   };
14   buildInputs = [ libX11 ];
16   installPhase = ''
17     mkdir -p $out/bin
18     cp xkblayout-state $out/bin
19   '';
21   meta = with lib; {
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;
27   };