2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, i3
|
|
|
|
, jsoncpp
|
|
|
|
, libsigcxx
|
|
|
|
, libX11
|
|
|
|
, libxkbfile
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xkb-switch-i3";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.8.5";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zebradil";
|
|
|
|
repo = "xkb-switch-i3";
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-oW1oXxYqaLTnVQMBEOFPdzS8EnpoPc68kbGxGXaWUB8=";
|
2021-01-05 17:05:55 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ i3 jsoncpp libsigcxx libX11 libxkbfile ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 17:05:55 +00:00
|
|
|
description = "Switch your X keyboard layouts from the command line(i3 edition)";
|
|
|
|
homepage = "https://github.com/Zebradil/xkb-switch-i3";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ewok ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xkb-switch";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
}
|