nixpkgs/pkgs/applications/misc/xxkb/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-15 06:42:41 +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
}:
assert svgSupport ->
librsvg != null && glib != null && gdk-pixbuf != null && pkg-config != null;
2016-01-03 06:03:14 +01:00
stdenv.mkDerivation rec {
name = "xxkb-1.11.1";
src = fetchurl {
url = "mirror://sourceforge/xxkb/${name}-src.tar.gz";
sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf";
};
2018-11-28 03:11:15 +01:00
nativeBuildInputs = [ imake gccmakedep ];
2016-01-03 06:03:14 +01:00
buildInputs = [
libX11 libXt libXext libXpm
] ++ lib.optionals svgSupport [ librsvg glib gdk-pixbuf pkg-config ];
2016-01-03 06:03:14 +01: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"
"CONFDIR=${placeholder "out"}/etc/X11"
2018-11-28 03:11:15 +01:00
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
"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
meta = {
description = "A keyboard layout indicator and switcher";
homepage = "http://xxkb.sourceforge.net/";
2021-01-15 06:42:41 +01:00
license = lib.licenses.artistic2;
maintainers = with lib.maintainers; [ rasendubi ];
platforms = lib.platforms.linux;
2016-01-03 06:03:14 +01:00
};
}