9 , gobject-introspection
30 stdenv.mkDerivation rec {
34 outputs = [ "out" "dev" "devdoc" ];
37 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
38 sha256 = "6p1BqfucK0KtgPwsgjJ7XHE9WUyWmwnhpJvmP7dPT64=";
42 patchShebangs utils/data-generators/cc/generate
60 (python3.pythonForBuild.withPackages (p: [ p.pygobject3 ]))
75 ] ++ lib.optionals stdenv.isLinux [
83 # https://gitlab.gnome.org/GNOME/tracker/-/blob/master/meson.build#L159
84 crossFile = writeText "cross-file.conf" ''
86 sqlite3_has_fts5 = '${lib.boolToString (lib.hasInfix "-DSQLITE_ENABLE_FTS3" sqlite.NIX_CFLAGS_COMPILE)}'
90 "--cross-file=${crossFile}"
92 ) ++ lib.optionals (!stdenv.isLinux) [
93 "-Dsystemd_user_services=false"
100 linuxDot0 = lib.optionalString stdenv.isLinux ".0";
101 darwinDot0 = lib.optionalString stdenv.isDarwin ".0";
102 extension = stdenv.hostPlatform.extensions.sharedLibrary;
105 # (tracker-store:6194): Tracker-CRITICAL **: 09:34:07.722: Cannot initialize database: Could not open sqlite3 database:'/homeless-shelter/.cache/tracker/meta.db': unable to open database file
106 export HOME=$(mktemp -d)
108 # Our gobject-introspection patches make the shared library paths absolute
109 # in the GIR files. When running functional tests, the library is not yet installed,
110 # though, so we need to replace the absolute path with a local one during build.
111 # We are using a symlink that will be overridden during installation.
113 ln -s $PWD/src/libtracker-sparql/libtracker-sparql-3.0${darwinDot0}${extension} $out/lib/libtracker-sparql-3.0${darwinDot0}${extension}${linuxDot0}
120 --config-file=${dbus.daemon}/share/dbus-1/session.conf \
122 --timeout-multiplier 2 \
129 # Clean up out symlinks
134 updateScript = gnome.updateScript {
140 homepage = "https://wiki.gnome.org/Projects/Tracker";
141 description = "Desktop-neutral user information store, search tool and indexer";
142 maintainers = teams.gnome.members;
143 license = licenses.gpl2Plus;
144 platforms = platforms.unix;