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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, libX11
, libXt
, libXext
, libXpm
, imake
, gccmakedep
, svgSupport ? false
, librsvg
, glib
, gdk-pixbuf
, pkg-config
2016-01-03 05:03:14 +00:00
}:
stdenv.mkDerivation rec {
pname = "xxkb";
version = "1.11.1";
2016-01-03 05:03:14 +00:00
src = fetchurl {
url = "mirror://sourceforge/xxkb/xxkb-${version}-src.tar.gz";
2016-01-03 05:03:14 +00:00
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
] ++ lib.optionals svgSupport [ librsvg glib gdk-pixbuf pkg-config ];
2016-01-03 05:03:14 +00:00
outputs = [ "out" "man" ];
2021-01-15 05:42:41 +00:00
imakeFlags = 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"
"CONFDIR=${placeholder "out"}/etc/X11"
2018-11-28 02:11:15 +00:00
"PIXMAPDIR=${placeholder "out"}/share/xxkb"
"LIBDIR=${placeholder "out"}/lib/X11"
2018-11-28 02:11:15 +00:00
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
"MANDIR=${placeholder "man"}/share/man"
];
2016-01-03 05:03:14 +00:00
2019-11-04 12:33:53 +00:00
installTargets = [ "install" "install.man" ];
2016-01-03 05:03:14 +00:00
meta = with lib; {
2016-01-03 05:03:14 +00:00
description = "A keyboard layout indicator and switcher";
homepage = "http://xxkb.sourceforge.net/";
license = licenses.artistic2;
maintainers = with maintainers; [ rasendubi ];
platforms = platforms.linux;
2016-01-03 05:03:14 +00:00
};
}