2022-05-26 00:43:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11 }:
|
2015-02-23 17:48:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-10 20:44:34 +00:00
|
|
|
pname = "xkblayout-state";
|
2015-02-23 17:48:31 +00:00
|
|
|
version = "1b";
|
|
|
|
|
2021-12-13 14:35:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nonpop";
|
|
|
|
repo = "xkblayout-state";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
|
2015-02-23 17:48:31 +00:00
|
|
|
};
|
|
|
|
|
2022-05-26 00:43:10 +00:00
|
|
|
buildInputs = [ libX11 ];
|
2015-02-23 17:48:31 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp xkblayout-state $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Small command-line program to get/set the current XKB keyboard layout";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nonpop/xkblayout-state";
|
2015-02-23 17:48:31 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.jagajaga ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "xkblayout-state";
|
2015-02-23 17:48:31 +00:00
|
|
|
};
|
|
|
|
}
|