about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch')
-rw-r--r--pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch b/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch
new file mode 100644
index 0000000000000..4a4960f13d6d7
--- /dev/null
+++ b/pkgs/development/python-modules/zxing_cpp/use-nixpkgs-pybind11.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index eadfc045..b6f273a6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,8 +20,7 @@ if (NOT hasParent)
+         # In development mode, when the whole zxing-cpp directory is checked out, build against head code.
+         add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../core ZXing EXCLUDE_FROM_ALL)
+ 
+-        include(${CMAKE_CURRENT_SOURCE_DIR}/../../zxing.cmake)
+-        zxing_add_package(pybind11 pybind11 ${pybind11_git_repo} ${pybind11_git_rev})
++        find_package(pybind11 CONFIG)
+     else()
+         # we don't have access to the top-level cmake helpers -> simply fetch it unconditional
+         include(FetchContent)