mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchurl, libX11, libXt, libXext, libXpm, imake
|
|
, svgSupport ? true, 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";
|
|
};
|
|
|
|
buildInputs = [
|
|
imake
|
|
libX11 libXt libXext libXpm
|
|
] ++ stdenv.lib.optionals 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=$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;
|
|
};
|
|
}
|