xxkb: Split into multiple outputs

I'm also adding myself as a maintainer as I'm the original author of the
derivation.
This commit is contained in:
Alexey Shmalko 2016-05-29 19:29:02 +03:00
parent cc41cb30e3
commit 84003b70b6
No known key found for this signature in database
GPG key ID: DCEF7BCCEB3066C3

View file

@ -18,12 +18,14 @@ stdenv.mkDerivation rec {
libX11 libXt libXext libXpm
] ++ stdenv.lib.optional svgSupport [ librsvg glib gdk_pixbuf pkgconfig ];
outputs = [ "out" "man" ];
configurePhase = ''
xmkmf ${stdenv.lib.optionalString svgSupport "-DWITH_SVG_SUPPORT"}
'';
preBuild = ''
makeFlagsArray=( BINDIR=$out/bin PIXMAPDIR=$out/share/xxkb XAPPLOADDIR=$out/etc/X11/app-defaults MANDIR=$out/man )
makeFlagsArray=( BINDIR=$out/bin PIXMAPDIR=$out/share/xxkb XAPPLOADDIR=$out/etc/X11/app-defaults MANDIR=$man/share/man )
'';
installTargets = "install install.man";
@ -32,6 +34,7 @@ stdenv.mkDerivation rec {
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;
};
}