lol
1{ stdenv, fetchurl
2, pkgconfig
3, python3Packages
4, wrapGAppsHook
5, atk
6, dbus_libs
7, evemu
8, frame
9, gdk_pixbuf
10, gobjectIntrospection
11, grail
12, gtk3
13, libX11
14, libXext
15, libXi
16, libXtst
17, pango
18, xorgserver
19}:
20
21with stdenv.lib;
22
23stdenv.mkDerivation rec {
24 name = "geis-${version}";
25 version = "2.2.17";
26
27 src = fetchurl {
28 url = "https://launchpad.net/geis/trunk/${version}/+download/${name}.tar.xz";
29 sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
30 };
31
32 NIX_CFLAGS_COMPILE = "-Wno-format -Wno-misleading-indentation -Wno-error";
33
34 pythonPath = with python3Packages;
35 [ pygobject3 ];
36
37 nativeBuildInputs = [ pkgconfig wrapGAppsHook python3Packages.wrapPython];
38 buildInputs = [ atk dbus_libs evemu frame gdk_pixbuf gobjectIntrospection grail
39 gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver
40 ];
41
42 patchPhase = ''
43 substituteInPlace python/geis/geis_v2.py --replace \
44 "ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
45 '';
46
47 preFixup = ''
48 buildPythonPath "$out $pythonPath"
49 gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
50 '';
51
52 meta = {
53 description = "A library for input gesture recognition";
54 homepage = https://launchpad.net/geis;
55 license = licenses.gpl2;
56 platforms = platforms.linux;
57 };
58}