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";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.0.1";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zebradil";
|
|
|
|
repo = "xkb-switch-i3";
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-5d1DdRtz0QCWISSsWQt9xgTOekYUCkhfMsjG+/kyQK4=";
|
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
|
|
|
};
|
|
|
|
}
|