1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/applications/misc/xxkb/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2018-11-28 02:11:15 +00:00
{ stdenv, fetchurl, libX11, libXt, libXext, libXpm, imake, gccmakedep
2019-05-22 12:03:39 +01:00
, svgSupport ? false, librsvg, glib, gdk-pixbuf, pkgconfig
2016-01-03 05:03:14 +00:00
}:
assert svgSupport ->
2019-05-22 12:03:39 +01:00
librsvg != null && glib != null && gdk-pixbuf != null && pkgconfig != null;
2016-01-03 05:03:14 +00:00
stdenv.mkDerivation rec {
name = "xxkb-1.11.1";
src = fetchurl {
url = "mirror://sourceforge/xxkb/${name}-src.tar.gz";
sha256 = "0hl1i38z9xnbgfjkaz04vv1n8xbgfg88g5z8fyzyb2hxv2z37anf";
};
2018-11-28 02:11:15 +00:00
nativeBuildInputs = [ imake gccmakedep ];
2016-01-03 05:03:14 +00:00
buildInputs = [
libX11 libXt libXext libXpm
2019-05-22 12:03:39 +01:00
] ++ stdenv.lib.optionals svgSupport [ librsvg glib gdk-pixbuf pkgconfig ];
2016-01-03 05:03:14 +00:00
outputs = [ "out" "man" ];
2018-11-28 02:11:15 +00:00
imakeFlags = stdenv.lib.optionalString svgSupport "-DWITH_SVG_SUPPORT";
2016-01-03 05:03:14 +00:00
2018-11-28 02:11:15 +00:00
makeFlags = [
"BINDIR=${placeholder "out"}/bin"
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
"MANDIR=${placeholder "man"}/share/man"
];
2016-01-03 05:03:14 +00:00
installTargets = "install install.man";
meta = {
description = "A keyboard layout indicator and switcher";
homepage = http://xxkb.sourceforge.net/;
2016-01-03 05:03:14 +00:00
license = stdenv.lib.licenses.artistic2;
maintainers = with stdenv.lib.maintainers; [ rasendubi ];
2016-01-03 05:03:14 +00:00
platforms = stdenv.lib.platforms.linux;
};
}