diff --git a/pkgs/applications/science/math/cemu-ti/default.nix b/pkgs/applications/science/math/cemu-ti/default.nix index 547b57b312db..e1fa87c4bd3a 100644 --- a/pkgs/applications/science/math/cemu-ti/default.nix +++ b/pkgs/applications/science/math/cemu-ti/default.nix @@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: { sourceRoot = "${finalAttrs.src.name}/gui/qt/"; + patches = [ + # This is resolved upstream, but I can't apply the patch because the + # sourceRoot isn't set to the base of the Git repo. + ./resolve-ambiguous-constexpr.patch + ]; nativeBuildInputs = [ cmake diff --git a/pkgs/applications/science/math/cemu-ti/resolve-ambiguous-constexpr.patch b/pkgs/applications/science/math/cemu-ti/resolve-ambiguous-constexpr.patch new file mode 100644 index 000000000000..572fffc062e0 --- /dev/null +++ b/pkgs/applications/science/math/cemu-ti/resolve-ambiguous-constexpr.patch @@ -0,0 +1,13 @@ +diff --git a/mainwindow.cpp b/mainwindow.cpp +index f03a743e..70c29a45 100644 +--- a/mainwindow.cpp ++++ b/mainwindow.cpp +@@ -970,7 +970,7 @@ void MainWindow::showEvent(QShowEvent *e) { + DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) { + QWidget *child = childAt(pos); + if (QTabBar *tabBar = findSelfOrParent(child)) { +- child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); ++ child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1})); + } + return findSelfOrParent(child); + }