2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3Packages
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages;
|
|
|
|
[ pygobject3 ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 python3Packages.wrapPython gobject-introspection ];
|
2023-08-10 07:59:29 +00:00
|
|
|
buildInputs = [ atk dbus evemu frame gdk-pixbuf 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")
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for input gesture recognition";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/geis";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|