summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-02 02:35:12 +0000
committertv <tv@krebsco.de>2026-12-02 02:52:01 +0000
commit1b288c2e1d27e373b40b246d856a42fabd90aea7 (patch)
treefee2d71a585253d895091e8163dddebd24123495 /pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch
parent57f5c7c722ff5606d5d360094a016a37ff819b63 (diff)
flameshot-once: flameshot 13.3.0 -> 15.0.0
nixpkgs' patches don't fit 15: load-missing-deps, made for 13.3.0, comes ported, the CVE-2026-62294 fix is in 15 already, and the macos-build one only matters on macOS. The applauncher patch is ported; imgur and history apply as they are.
Diffstat (limited to 'pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch')
-rw-r--r--pkgs/simple/flameshot-once/flameshot/flameshot-15.load-missing-deps.patch32
1 files changed, 32 insertions, 0 deletions
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)