diff --git a/pkgs/applications/office/gnucash/cmake_check_symbol_exists.patch b/pkgs/applications/office/gnucash/cmake_check_symbol_exists.patch new file mode 100644 index 000000000000..5e0ae68e17c6 --- /dev/null +++ b/pkgs/applications/office/gnucash/cmake_check_symbol_exists.patch @@ -0,0 +1,12 @@ +Index: gnucash-3.6/gnucash/register/register-gnome/CMakeLists.txt +=================================================================== +--- gnucash-3.6.orig/gnucash/register/register-gnome/CMakeLists.txt ++++ gnucash-3.6/gnucash/register/register-gnome/CMakeLists.txt +@@ -1,6 +1,7 @@ + add_subdirectory(test) + + #GTK before 3.14 didn't have GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK ++include(CheckSymbolExists) + check_symbol_exists(GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK gdk/gdktypes.h have_mod_mask) + if (NOT have_mod_mask) + if (MAC_INTEGRATION) diff --git a/pkgs/applications/office/gnucash/default.nix b/pkgs/applications/office/gnucash/default.nix index d3ab02fabd3f..3abc447f6e9f 100644 --- a/pkgs/applications/office/gnucash/default.nix +++ b/pkgs/applications/office/gnucash/default.nix @@ -47,6 +47,8 @@ stdenv.mkDerivation rec { # Should probably be removed next version bump CXXFLAGS = [ "-Wno-deprecated-declarations" ]; + patches = [ ./cmake_check_symbol_exists.patch ]; + postPatch = '' patchShebangs . '';