2021-03-07 20:25:34 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk3, libwnck3, libxklavier
|
|
|
|
, appindicatorSupport ? true, libayatana-appindicator-gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gxkb";
|
2021-05-05 04:58:36 +01:00
|
|
|
version = "0.9.2";
|
2021-03-07 20:25:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zen-tools";
|
|
|
|
repo = "gxkb";
|
|
|
|
rev = "v${version}";
|
2021-05-05 04:58:36 +01:00
|
|
|
sha256 = "sha256-KIlosBNfGSYCgtxBuSVeSfHaLsANdLgG/P5UtAL6Hms=";
|
2021-03-07 20:25:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
buildInputs = [ gtk3 libwnck3 libxklavier ] ++ lib.optional appindicatorSupport libayatana-appindicator-gtk3;
|
|
|
|
|
|
|
|
configureFlags = lib.optional appindicatorSupport "--enable-appindicator=yes";
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "X11 keyboard indicator and switcher";
|
|
|
|
homepage = "https://zen-tools.github.io/gxkb/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.omgbebebe ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|