@@ -0,0 +1,25 @@
1+{ stdenv, fetchurl, qt4 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "xkblayout-state";
5+ version = "1b";
6+
7+ src = fetchurl {
8+ url = "https://github.com/nonpop/${name}/archive/v${version}.tar.gz";
9+ sha256 = "1m1nnplrdb2mclhj0881wf78ckvdnyk24g4k4p5s5gpd96cxxwnx";
10+ };
11+
12+ buildInputs = [ qt4 ];
13+
14+ installPhase = ''
15+ mkdir -p $out/bin
16+ cp xkblayout-state $out/bin
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "A small command-line program to get/set the current XKB keyboard layout";
21+ homepage = https://github.com/nonpop/xkblayout-state;
22+ license = licenses.gpl2;
23+ maintainers = [ maintainers.jagajaga ];
24+ };
25+}