blob: db952758f04cabb5cb57e4e7980efdebff08232a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, fetchurl, libX11, libXt, libXext, libXpm, imake, gccmakedep
, svgSupport ? false, librsvg, glib, gdk-pixbuf, pkgconfig
}:
assert svgSupport ->
librsvg != null && glib != null && gdk-pixbuf != null && pkgconfig != null;
stdenv.mkDerivation rec {
name = "xxkb-1.11.1";
src = fetchurl {
url = "mirror://sourceforge/xxkb/${name}-src.tar.gz";
sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf";
};
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [
libX11 libXt libXext libXpm
] ++ stdenv.lib.optionals svgSupport [ librsvg glib gdk-pixbuf pkgconfig ];
outputs = [ "out" "man" ];
imakeFlags = stdenv.lib.optionalString svgSupport "-DWITH_SVG_SUPPORT";
makeFlags = [
"BINDIR=${placeholder "out"}/bin"
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
"MANDIR=${placeholder "man"}/share/man"
];
installTargets = "install install.man";
meta = {
description = "A keyboard layout indicator and switcher";
homepage = http://xxkb.sourceforge.net/;
license = stdenv.lib.licenses.artistic2;
maintainers = with stdenv.lib.maintainers; [ rasendubi ];
platforms = stdenv.lib.platforms.linux;
};
}
|