2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libX11
|
|
|
|
, libXt
|
|
|
|
, libXext
|
|
|
|
, libXpm
|
|
|
|
, imake
|
|
|
|
, gccmakedep
|
|
|
|
, svgSupport ? false
|
|
|
|
, librsvg
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "xxkb";
|
|
|
|
version = "1.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/xxkb/xxkb-${version}-src.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf";
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ imake gccmakedep pkg-config ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
libX11
|
|
|
|
libXt
|
|
|
|
libXext
|
|
|
|
libXpm
|
2022-10-21 18:38:19 +00:00
|
|
|
] ++ lib.optionals svgSupport [ librsvg glib gdk-pixbuf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
imakeFlags = lib.optionalString svgSupport "-DWITH_SVG_SUPPORT";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
2021-09-18 10:52:07 +00:00
|
|
|
"CONFDIR=${placeholder "out"}/etc/X11"
|
2020-04-24 23:36:52 +00:00
|
|
|
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
|
2021-09-18 10:52:07 +00:00
|
|
|
"LIBDIR=${placeholder "out"}/lib/X11"
|
2020-04-24 23:36:52 +00:00
|
|
|
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
|
|
|
|
"MANDIR=${placeholder "man"}/share/man"
|
|
|
|
];
|
|
|
|
|
|
|
|
installTargets = [ "install" "install.man" ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A keyboard layout indicator and switcher";
|
|
|
|
homepage = "http://xxkb.sourceforge.net/";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.artistic2;
|
|
|
|
maintainers = with maintainers; [ rasendubi ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "xxkb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|