uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/development/libraries/libxklavier/default.nix
Normal file
43
pkgs/development/libraries/libxklavier/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl
|
||||
, glib, isocodes, gobject-introspection
|
||||
, withDoc ? (stdenv.buildPlatform == stdenv.hostPlatform)
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libxklavier";
|
||||
version = "5.4";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitlab.freedesktop.org/archived-projects/libxklavier.git";
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a";
|
||||
};
|
||||
|
||||
patches = [ ./honor-XKB_CONFIG_ROOT.patch ];
|
||||
|
||||
outputs = [ "out" "dev" ] ++ lib.optionals withDoc [ "devdoc" ];
|
||||
|
||||
# TODO: enable xmodmap support, needs xmodmap DB
|
||||
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config gtk-doc docbook_xsl gobject-introspection ];
|
||||
|
||||
preAutoreconf = ''
|
||||
export NOCONFIGURE=1
|
||||
gtkdocize
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
|
||||
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
|
||||
"--disable-xmodmap-support"
|
||||
"${if withDoc then "--enable-gtk-doc" else "--disable-gtk-doc"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library providing high-level API for X Keyboard Extension known as XKB";
|
||||
homepage = "http://freedesktop.org/wiki/Software/LibXklavier";
|
||||
license = licenses.lgpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue