2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xkblayout-state";
|
|
|
|
version = "1b";
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nonpop";
|
|
|
|
repo = "xkblayout-state";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-diorqwDEBdzcBteKvhRisQaY3bx5seaOaWSaPwBkWDo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildInputs = [ libX11 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp xkblayout-state $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small command-line program to get/set the current XKB keyboard layout";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nonpop/xkblayout-state";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "xkblayout-state";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|