diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-03-25 20:29:09 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-25 20:34:06 +0800 |
commit | 8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f (patch) | |
tree | 005bc43d790d89e48c6d75a778a24bb5bb0c30be | |
parent | 44d0940ea560dee511026a53f0e2e2cde489b4d4 (diff) | |
download | nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar.gz nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar.bz2 nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar.lz nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar.xz nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.tar.zst nixlib-8c8cbb34db7258f30dd67bf3b019eb6267c1fc7f.zip |
gedit: Patch cairo usages in snippets plugin
Fixes "TypeError: Couldn't find foreign struct converter for 'cairo.Context'".
-rw-r--r-- | pkgs/applications/editors/gedit/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/editors/gedit/default.nix b/pkgs/applications/editors/gedit/default.nix index d7e5ac0ba1eb..eb985016b178 100644 --- a/pkgs/applications/editors/gedit/default.nix +++ b/pkgs/applications/editors/gedit/default.nix @@ -4,6 +4,7 @@ , mesonEmulatorHook , fetchurl , python3 +, python3Packages , pkg-config , gtk3 , gtk-mac-integration @@ -53,6 +54,7 @@ stdenv.mkDerivation rec { perl pkg-config python3 + python3Packages.wrapPython vala wrapGAppsHook gtk-doc @@ -85,6 +87,16 @@ stdenv.mkDerivation rec { # Reliably fails to generate gedit-file-browser-enum-types.h in time enableParallelBuilding = false; + pythonPath = with python3Packages; [ + # https://github.com/NixOS/nixpkgs/issues/298716 + pycairo + ]; + + postFixup = '' + buildPythonPath "$pythonPath" + patchPythonScript $out/lib/gedit/plugins/snippets/document.py + ''; + passthru = { updateScript = gnome.updateScript { packageName = "gedit"; |