1 { lib, stdenv, fetchFromGitHub, fetchurl, git, autoreconfHook, pkg-config, gtk3, libwnck, libxklavier
2 , appindicatorSupport ? true, libayatana-appindicator
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "sha256-oBIBIkj4p6HlF0PRQtI/K5dhLs7pbPxN7Cgr/YZaI1s=";
16 nativeBuildInputs = [ pkg-config autoreconfHook ];
17 buildInputs = [ gtk3 libwnck libxklavier ] ++ lib.optional appindicatorSupport libayatana-appindicator;
19 configureFlags = lib.optional appindicatorSupport "--enable-appindicator=yes";
20 outputs = [ "out" "man" ];
22 # This patch restore data which was wiped by upstream without any technical reasons
23 # https://github.com/omgbebebe/gxkb/commit/727ec8b595a91dbb540e6087750f43b85d0dfbc0
24 # NOTE: the `patch` hook cannot be used here due to lack of support for git binary patches
26 url = "https://github.com/omgbebebe/gxkb/commit/727ec8b595a91dbb540e6087750f43b85d0dfbc0.patch";
27 hash = "sha256-x7x3MHHrOnPivvlzOFqgFAA5BDB2LOXMlalPYbwM/1Q=";
31 ${git}/bin/git apply ${p1}
35 description = "X11 keyboard indicator and switcher";
36 homepage = "https://zen-tools.github.io/gxkb/";
37 license = licenses.gpl2Plus;
38 maintainers = [ maintainers.omgbebebe ];
39 platforms = platforms.linux;