summaryrefslogtreecommitdiffstats
path: root/pkgs/simple
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/simple')
-rw-r--r--pkgs/simple/flameshot-once/flameshot/default.nix10
-rw-r--r--pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch9
-rw-r--r--pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch32
3 files changed, 44 insertions, 7 deletions
diff --git a/pkgs/simple/flameshot-once/flameshot/default.nix b/pkgs/simple/flameshot-once/flameshot/default.nix
index 57d9e378..417ef1da 100644
--- a/pkgs/simple/flameshot-once/flameshot/default.nix
+++ b/pkgs/simple/flameshot-once/flameshot/default.nix
@@ -6,10 +6,14 @@ super.flameshot.overrideAttrs (old: rec {
src = self.fetchFromGitHub {
owner = "flameshot-org";
repo = "flameshot";
- rev = "tags/v13.3.0";
- hash = "sha256-RyoLniRmJRinLUwgmaA4RprYAVHnoPxCP9LyhHfUPe0=";
+ rev = "tags/v15.0.0";
+ hash = "sha256-5oaG8EW3QS8jX0V7YJHjMk5W4kaahm+SZ/Rl2xkLGbM=";
};
- patches = old.patches or [] ++ [
+ # Instead of nixpkgs' patches, made for 13.3.0: its load-missing-deps
+ # for 15, without the CVE-2026-62294 fix, which 15 has, and the
+ # macos-build one, which Linux doesn't need.
+ patches = [
+ ./flameshot-15.load-missing-deps.patch
./flameshot-15.imgur.patch
./flameshot-15.history.patch
./flameshot-15.applauncher.patch
diff --git a/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch b/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch
index c43096dd..c1cf2f86 100644
--- a/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch
+++ b/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch
@@ -1,16 +1,16 @@
diff --git a/src/tools/launcher/applauncherwidget.cpp b/src/tools/launcher/applauncherwidget.cpp
-index 4ec68f29..3a0fa9ad 100644
+index c3e1f30..3f5205c 100644
--- a/src/tools/launcher/applauncherwidget.cpp
+++ b/src/tools/launcher/applauncherwidget.cpp
-@@ -22,6 +22,7 @@
+@@ -23,6 +23,7 @@
#include <QStandardPaths>
#include <QTabWidget>
#include <QTemporaryFile>
+#include <stdlib.h>
namespace {
- #if defined(Q_OS_WIN)
-@@ -72,6 +73,14 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent)
+
+@@ -74,6 +75,15 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent)
m_parser.processDirectory(QDir(appsDir));
}
@@ -22,6 +22,7 @@ index 4ec68f29..3a0fa9ad 100644
+ QString dir = QStringLiteral("/run/current-system/sw/share/applications/");
+ QDir appsDir(dir);
+ m_parser.processDirectory(appsDir);
++
#endif
initAppMap();
diff --git a/pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch b/pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch
new file mode 100644
index 00000000..98350e12
--- /dev/null
+++ b/pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch
@@ -0,0 +1,32 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4dd2fc3..c57162c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -35,26 +35,7 @@ if(MSVC)
+ add_link_options(/GUARD:CF)
+ endif()
+
+-# Dependency can be fetched via flatpak builder
+-if(EXISTS "${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets/CMakeLists.txt")
+- add_subdirectory("${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets" EXCLUDE_FROM_ALL)
+-else()
+- FetchContent_Declare(
+- qtColorWidgets
+- GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git
+- GIT_TAG 5d52e907e50dc88cf969b41cea44665ff6c475b1
+- )
+- #Workaround for duplicate GUID in windows WIX installer
+- if(WIN32)
+- FetchContent_GetProperties(qtColorWidgets)
+- if(NOT qtcolorwidgets_POPULATED)
+- FetchContent_Populate(qtColorWidgets)
+- add_subdirectory(${qtcolorwidgets_SOURCE_DIR} ${qtcolorwidgets_BINARY_DIR} EXCLUDE_FROM_ALL)
+- endif()
+- else()
+- FetchContent_MakeAvailable(qtColorWidgets)
+- endif()
+-endif()
++find_package(QtColorWidgets REQUIRED)
+
+ # This can be read from ${PROJECT_NAME} after project() is called
+ if(APPLE)