···75757676mkDerivation rec {
7777 pname = "recoll";
7878- version = "1.39.1";
7878+ version = "1.43.2";
79798080 src = fetchurl {
8181 url = "https://www.recoll.org/${pname}-${version}.tar.gz";
8282- hash = "sha256-Eeadj/AnuztCb7VIYEy4hKbduH3CzK53tADvI9+PWmQ=";
8282+ hash = "sha256-FbDXknumjktcikOfAe4FKtPmggJGGHasq8dpD+8mNzE=";
8383 };
84848585 mesonFlags =
···107107 ];
108108109109 env.NIX_CFLAGS_COMPILE = toString [
110110- "-DNIXPKGS"
111110 "-fpermissive" # libxml2-2.12 changed const qualifiers
112111 ];
113112114113 patches = [
115115- # fix "No/bad main configuration file" error
116116- ./fix-datadir.patch
117114 # use the same configure based build for darwin as linux
118115 ./0001-no-qtgui-darwin-bundle.patch
119116 ];
-13
pkgs/applications/search/recoll/fix-datadir.patch
···11-diff --git a/utils/rclutil.cpp b/utils/rclutil.cpp
22-index 6bafc119..d997cd17 100644
33---- a/utils/rclutil.cpp
44-+++ b/utils/rclutil.cpp
55-@@ -279,7 +279,7 @@ const string& path_pkgdatadir()
66- "a subfolder of the installation directory. \n"
77- "Please set the RECOLL_DATADIR environment variable to point to it\n"
88- "(e.g. setx RECOLL_DATADIR \"C:/Program Files (X86)/Recoll/Share)\"\n";
99--#elif defined(__APPLE__) && defined(RECOLL_AS_MAC_BUNDLE)
1010-+#elif defined(__APPLE__) && defined(RECOLL_AS_MAC_BUNDLE) && defined(NIXPKGS)
1111- // The package manager builds (Macports, Homebrew, Nixpkgs ...) all arrange to set a proper
1212- // compiled value for RECOLL_DATADIR. We can't do this when building a native bundle with
1313- // QCreator, in which case we use the executable location.