Skip to content

Commit

Permalink
fix: cutter build
Browse files Browse the repository at this point in the history
  • Loading branch information
midchildan committed May 12, 2024
1 parent a189184 commit c25cebd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nix/overlays/cutter-pyside-2404.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Fix breakage caused by
https://github.com/pyside/pyside-setup/commit/5d05065b57f5e37c2229ff6a2d98d936c5c7f2bb

diff -Naur a/src/plugins/PluginManager.cpp b/src/plugins/PluginManager.cpp
--- a/src/plugins/PluginManager.cpp 2024-05-13 02:21:36
+++ b/src/plugins/PluginManager.cpp 2024-05-13 02:29:46
@@ -215,7 +215,7 @@
}

PythonToCppFunc pythonToCpp = Shiboken::Conversions::isPythonToCppPointerConvertible(
- reinterpret_cast<SbkObjectType *>(SbkCutterBindingsTypes[SBK_CUTTERPLUGIN_IDX]),
+ SbkCutterBindingsTypeStructs[SBK_CUTTERPLUGIN_IDX].type,
pluginObject);
if (!pythonToCpp) {
qWarning() << "Plugin's create_cutter_plugin() function did not return an instance of "
3 changes: 3 additions & 0 deletions nix/overlays/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
final: prev:

{
cutter = prev.cutter.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./cutter-pyside-2404.patch ];
});
}

0 comments on commit c25cebd

Please sign in to comment.