2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
, atk
|
|
|
|
, dbus
|
|
|
|
, evemu
|
|
|
|
, frame
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, grail
|
|
|
|
, gtk3
|
2022-10-21 18:38:19 +00:00
|
|
|
, xorg
|
2020-04-24 23:36:52 +00:00
|
|
|
, pango
|
|
|
|
, xorgserver
|
|
|
|
}:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "geis";
|
|
|
|
version = "2.2.17";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/geis/trunk/${version}/+download/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages;
|
|
|
|
[ pygobject3 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook python3Packages.wrapPython];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ atk dbus evemu frame gdk-pixbuf gobject-introspection grail
|
2022-10-21 18:38:19 +00:00
|
|
|
gtk3 xorg.libX11 xorg.libXext xorg.libXi xorg.libXtst pango python3Packages.python xorgserver
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library for input gesture recognition";
|
|
|
|
homepage = "https://launchpad.net/geis";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|