From b938d970222026c975414b9f7fe86aa451aeecff Mon Sep 17 00:00:00 2001 From: "developing-today[bot]" <5454422+developing-today[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 21:35:50 -0600 Subject: [PATCH] nixpkgs: patch cutter 2.5.0 .ui class name for Qt 6.12 uic (#5269) Qt 6.12 uic rejects the templated class name AddressableItemList<> used in seven cutter 2.5.0 .ui files, failing the build and cascading into the amd toplevel (cutter -> fish-completions -> man-paths -> system-path). Mirror upstream rizinorg/cutter: name the default instantiation AddressableItemListView via a using-alias in AddressableItemList.h and use it in the .ui files, applied as a postPatch overlay in nixos/nixpkgs/default.nix. Verified on amd-6: nix build .#nixosConfigurations.amd.pkgs.cutter -> /nix/store/kp5hzyrq9x0h9yq2fdj3w7rsj7yhq1z2-cutter-2.5.0 (green). --- nixos/nixpkgs/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nixos/nixpkgs/default.nix b/nixos/nixpkgs/default.nix index 6197c575bc..8222ef5aa3 100644 --- a/nixos/nixpkgs/default.nix +++ b/nixos/nixpkgs/default.nix @@ -84,6 +84,29 @@ }); } ) + # cutter 2.5.0 (code#5269): Qt 6.12's uic rejects the templated class + # name "AddressableItemList<>" used in seven of cutter's .ui files + # ("Invalid class name"), failing the build and cascading into the + # amd toplevel. Mirror upstream's own fix: give the default + # instantiation the plain name AddressableItemListView (a using-alias + # added to AddressableItemList.h) and use it in the .ui files. Drop + # this overlay once nixpkgs ships a cutter whose .ui files pass uic. + (final: prev: { + cutter = prev.cutter.overrideAttrs (old: { + postPatch = (old.postPatch or "") + '' + sed -i 's/AddressableItemList<>/AddressableItemListView/g' \ + src/dialogs/XrefsDialog.ui \ + src/widgets/BreakpointWidget.ui \ + src/widgets/FlagsWidget.ui \ + src/widgets/GlobalsWidget.ui \ + src/widgets/ListDockWidget.ui \ + src/widgets/SearchWidget.ui \ + src/widgets/StringsWidget.ui + sed -i 's|^#endif // ADDRESSABLE_ITEM_LIST_H|using AddressableItemListView = AddressableItemList;\n\n#endif // ADDRESSABLE_ITEM_LIST_H|' \ + src/widgets/AddressableItemList.h + ''; + }); + }) # Provides pkgs.openclaw + pkgs.openclawPackages for home/openclaw. inputs.nix-openclaw.overlays.default # inputs.waybar.overlays.default # ?? !! style.css