2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2018-01-19 06:24:37 +01:00
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
, atk
|
2018-07-17 22:11:16 +02:00
|
|
|
, dbus
|
2016-07-05 00:51:33 +02:00
|
|
|
, evemu
|
|
|
|
, frame
|
2019-05-22 13:03:39 +02:00
|
|
|
, gdk-pixbuf
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
2016-07-05 00:51:33 +02:00
|
|
|
, grail
|
2018-01-19 06:24:37 +01:00
|
|
|
, gtk3
|
2016-07-05 00:51:33 +02:00
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXi
|
|
|
|
, libXtst
|
2018-01-19 06:24:37 +01:00
|
|
|
, pango
|
2016-07-05 00:51:33 +02:00
|
|
|
, xorgserver
|
|
|
|
}:
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
with lib;
|
2015-02-06 06:53:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "geis";
|
2017-03-12 22:25:18 +01:00
|
|
|
version = "2.2.17";
|
2016-07-05 00:51:33 +02:00
|
|
|
|
2015-02-06 06:53:32 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://launchpad.net/geis/trunk/${version}/+download/${pname}-${version}.tar.xz";
|
2017-03-12 22:25:18 +01:00
|
|
|
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
|
2015-02-06 06:53:32 +01:00
|
|
|
};
|
|
|
|
|
2019-10-30 02:29:30 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
|
2018-09-14 23:58:04 +02:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2015-02-06 06:53:32 +01:00
|
|
|
|
2018-01-19 06:24:37 +01:00
|
|
|
pythonPath = with python3Packages;
|
|
|
|
[ pygobject3 ];
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook python3Packages.wrapPython];
|
2019-05-22 13:03:39 +02:00
|
|
|
buildInputs = [ atk dbus evemu frame gdk-pixbuf gobject-introspection grail
|
2018-01-19 06:24:37 +01: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 06:53:32 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-07-05 00:51:33 +02:00
|
|
|
description = "A library for input gesture recognition";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/geis";
|
2016-07-05 00:51:33 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-02-06 06:53:32 +01:00
|
|
|
};
|
2015-04-28 10:54:58 +02:00
|
|
|
}
|