2021-11-07 14:50:48 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libX11
|
|
|
|
, libXt
|
|
|
|
, libXext
|
|
|
|
, libXpm
|
|
|
|
, imake
|
|
|
|
, gccmakedep
|
|
|
|
, svgSupport ? false
|
|
|
|
, librsvg
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pkg-config
|
2016-01-03 06:03:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 14:50:48 +01:00
|
|
|
pname = "xxkb";
|
|
|
|
version = "1.11.1";
|
2016-01-03 06:03:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 14:50:48 +01:00
|
|
|
url = "mirror://sourceforge/xxkb/xxkb-${version}-src.tar.gz";
|
2016-01-03 06:03:14 +01:00
|
|
|
sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf";
|
|
|
|
};
|
|
|
|
|
2018-11-28 03:11:15 +01:00
|
|
|
nativeBuildInputs = [ imake gccmakedep ];
|
2021-11-08 20:35:47 +01:00
|
|
|
|
2016-01-03 06:03:14 +01:00
|
|
|
buildInputs = [
|
2021-11-07 14:50:48 +01:00
|
|
|
libX11
|
|
|
|
libXt
|
|
|
|
libXext
|
|
|
|
libXpm
|
2021-01-17 03:09:27 +01:00
|
|
|
] ++ lib.optionals svgSupport [ librsvg glib gdk-pixbuf pkg-config ];
|
2016-01-03 06:03:14 +01:00
|
|
|
|
2016-05-29 18:29:02 +02:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
imakeFlags = lib.optionalString svgSupport "-DWITH_SVG_SUPPORT";
|
2016-01-03 06:03:14 +01:00
|
|
|
|
2018-11-28 03:11:15 +01:00
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
2021-08-24 22:46:29 +02:00
|
|
|
"CONFDIR=${placeholder "out"}/etc/X11"
|
2018-11-28 03:11:15 +01:00
|
|
|
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
|
2021-08-24 22:46:29 +02:00
|
|
|
"LIBDIR=${placeholder "out"}/lib/X11"
|
2018-11-28 03:11:15 +01:00
|
|
|
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
|
|
|
|
"MANDIR=${placeholder "man"}/share/man"
|
|
|
|
];
|
2016-01-03 06:03:14 +01:00
|
|
|
|
2019-11-04 13:33:53 +01:00
|
|
|
installTargets = [ "install" "install.man" ];
|
2016-01-03 06:03:14 +01:00
|
|
|
|
2021-11-08 20:35:47 +01:00
|
|
|
meta = with lib; {
|
2016-01-03 06:03:14 +01:00
|
|
|
description = "A keyboard layout indicator and switcher";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://xxkb.sourceforge.net/";
|
2021-11-08 20:35:47 +01:00
|
|
|
license = licenses.artistic2;
|
|
|
|
maintainers = with maintainers; [ rasendubi ];
|
|
|
|
platforms = platforms.linux;
|
2016-01-03 06:03:14 +01:00
|
|
|
};
|
2016-05-29 18:29:02 +02:00
|
|
|
}
|