2016-07-04 22:51:33 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, pkgconfig
|
2018-01-19 05:24:37 +00:00
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
, atk
|
2018-07-17 20:11:16 +00:00
|
|
|
, dbus
|
2016-07-04 22:51:33 +00:00
|
|
|
, evemu
|
|
|
|
, frame
|
2018-01-19 05:24:37 +00:00
|
|
|
, gdk_pixbuf
|
|
|
|
, gobjectIntrospection
|
2016-07-04 22:51:33 +00:00
|
|
|
, grail
|
2018-01-19 05:24:37 +00:00
|
|
|
, gtk3
|
2016-07-04 22:51:33 +00:00
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXi
|
|
|
|
, libXtst
|
2018-01-19 05:24:37 +00:00
|
|
|
, pango
|
2016-07-04 22:51:33 +00:00
|
|
|
, xorgserver
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "geis-${version}";
|
2017-03-12 21:25:18 +00:00
|
|
|
version = "2.2.17";
|
2016-07-04 22:51:33 +00:00
|
|
|
|
2015-02-06 05:53:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/geis/trunk/${version}/+download/${name}.tar.xz";
|
2017-03-12 21:25:18 +00:00
|
|
|
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
|
|
|
|
2017-08-25 06:41:02 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-format -Wno-misleading-indentation -Wno-error";
|
2015-02-06 05:53:32 +00:00
|
|
|
|
2018-01-19 05:24:37 +00:00
|
|
|
pythonPath = with python3Packages;
|
|
|
|
[ pygobject3 ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook python3Packages.wrapPython];
|
2018-07-17 20:11:16 +00:00
|
|
|
buildInputs = [ atk dbus evemu frame gdk_pixbuf gobjectIntrospection grail
|
2018-01-19 05:24:37 +00:00
|
|
|
gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace python/geis/geis_v2.py --replace \
|
|
|
|
"ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
|
|
|
|
'';
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
meta = {
|
2016-07-04 22:51:33 +00:00
|
|
|
description = "A library for input gesture recognition";
|
|
|
|
homepage = https://launchpad.net/geis;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
2015-04-28 08:54:58 +00:00
|
|
|
}
|