Loading pkgs/applications/science/math/cemu-ti/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading pkgs/applications/science/math/cemu-ti/resolve-ambiguous-constexpr.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line 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<QTabBar *>(child)) { - child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); + child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1})); } return findSelfOrParent<DockWidget *>(child); } Loading
pkgs/applications/science/math/cemu-ti/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
pkgs/applications/science/math/cemu-ti/resolve-ambiguous-constexpr.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line 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<QTabBar *>(child)) { - child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); + child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1})); } return findSelfOrParent<DockWidget *>(child); }