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