lol

geis: fix python programs

+24 -3
+24 -3
pkgs/development/libraries/geis/default.nix
··· 1 1 { stdenv, fetchurl 2 2 , pkgconfig 3 - , python3 3 + , python3Packages 4 + , wrapGAppsHook 5 + , atk 4 6 , dbus_libs 5 7 , evemu 6 8 , frame 9 + , gdk_pixbuf 10 + , gobjectIntrospection 7 11 , grail 12 + , gtk3 8 13 , libX11 9 14 , libXext 10 15 , libXi 11 16 , libXtst 17 + , pango 12 18 , xorgserver 13 19 }: 14 20 ··· 25 31 26 32 NIX_CFLAGS_COMPILE = "-Wno-format -Wno-misleading-indentation -Wno-error"; 27 33 28 - nativeBuildInputs = [ pkgconfig ]; 29 - buildInputs = [ python3 dbus_libs evemu frame grail libX11 libXext libXi libXtst xorgserver ]; 34 + pythonPath = with python3Packages; 35 + [ pygobject3 ]; 36 + 37 + nativeBuildInputs = [ pkgconfig wrapGAppsHook python3Packages.wrapPython]; 38 + buildInputs = [ atk dbus_libs evemu frame gdk_pixbuf gobjectIntrospection grail 39 + gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver 40 + ]; 41 + 42 + patchPhase = '' 43 + substituteInPlace python/geis/geis_v2.py --replace \ 44 + "ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'" 45 + ''; 46 + 47 + preFixup = '' 48 + buildPythonPath "$out $pythonPath" 49 + gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH") 50 + ''; 30 51 31 52 meta = { 32 53 description = "A library for input gesture recognition";