depot/third_party/nixpkgs/pkgs/tools/X11/xkb-switch/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
678 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, libX11, libxkbfile }:
stdenv.mkDerivation rec {
pname = "xkb-switch";
version = "1.8.5";
src = fetchFromGitHub {
owner = "ierton";
repo = "xkb-switch";
rev = version;
sha256 = "sha256-DZAIL6+D+Hgs+fkJwRaQb9BHrEjAkxiqhOZyrR+Mpuk=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libX11 libxkbfile ];
meta = with lib; {
description = "Switch your X keyboard layouts from the command line";
homepage = "https://github.com/ierton/xkb-switch";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ smironov ];
platforms = platforms.linux;
mainProgram = "xkb-switch";
};
}