geis: refactor & fix build
- Pass -Wno-error=pedantic to work around ISO C violations - Build with X11 unconditionally (also rely on pkgconfig for detection, --enable-x11 does not work) - Build against evemu
This commit is contained in:
parent
966c75ef0c
commit
3f5d7c7e04
@ -1,23 +1,37 @@
|
|||||||
{ enableX11 ? true
|
{ stdenv, fetchurl
|
||||||
, stdenv, fetchurl, pkgconfig, xorg, xorgserver, python3, dbus_libs, frame, grail }:
|
, pkgconfig
|
||||||
|
, python3
|
||||||
|
, dbus_libs
|
||||||
|
, evemu
|
||||||
|
, frame
|
||||||
|
, grail
|
||||||
|
, libX11
|
||||||
|
, libXext
|
||||||
|
, libXi
|
||||||
|
, libXtst
|
||||||
|
, xorgserver
|
||||||
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "geis-${version}";
|
name = "geis-${version}";
|
||||||
version = "2.2.16";
|
version = "2.2.16";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://launchpad.net/geis/trunk/${version}/+download/${name}.tar.xz";
|
url = "https://launchpad.net/geis/trunk/${version}/+download/${name}.tar.xz";
|
||||||
sha256 = "40a694092c79f325a2fbf8a9f301177bc91c364f4e637c2aa8963ad2a5aabbcf";
|
sha256 = "40a694092c79f325a2fbf8a9f301177bc91c364f4e637c2aa8963ad2a5aabbcf";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig python3 dbus_libs frame grail ]
|
NIX_CFLAGS_COMPILE = "-Wno-error=pedantic";
|
||||||
++ stdenv.lib.optional enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.xorgserver];
|
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optional enableX11"--enable-x11";
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
buildInputs = [ python3 dbus_libs evemu frame grail libX11 libXext libXi libXtst xorgserver ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://launchpad.net/geis";
|
description = "A library for input gesture recognition";
|
||||||
description = "A library for applications and toolkit programmers which provides a consistent platform independent interface for any system-wide input gesture recognition mechanism";
|
homepage = https://launchpad.net/geis;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6290,7 +6290,9 @@ in
|
|||||||
|
|
||||||
m4 = gnum4;
|
m4 = gnum4;
|
||||||
|
|
||||||
geis = callPackage ../development/libraries/geis { };
|
geis = callPackage ../development/libraries/geis {
|
||||||
|
inherit (xorg) libX11 libXext libXi libXtst;
|
||||||
|
};
|
||||||
|
|
||||||
global = callPackage ../development/tools/misc/global { };
|
global = callPackage ../development/tools/misc/global { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user