2024-03-14 02:44:25 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "g3kb-switch";
|
2024-05-27 01:10:34 +00:00
|
|
|
version = "1.5";
|
2024-03-14 02:44:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lyokha";
|
|
|
|
repo = "g3kb-switch";
|
|
|
|
rev = version;
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-kTJfV0xQmWuxibUlfC1qJX2J2nrZ4wimdf/nGciQq0Y=";
|
2024-03-14 02:44:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/lyokha/g3kb-switch";
|
2024-06-16 20:48:03 +00:00
|
|
|
changelog = "https://github.com/lyokha/g3kb-switch/releases/tag/${src.rev}";
|
2024-03-14 02:44:25 +00:00
|
|
|
description = "CLI keyboard layout switcher for GNOME Shell";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "g3kb-switch";
|
2024-03-14 02:44:25 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ Freed-Wu ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|