From 971d1baa372314845cd58fd32fdd6626c54507db Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Thu, 20 Aug 2020 20:02:36 +0100 Subject: [PATCH] gnome3.nautilus: 3.36.3 -> 3.38.0 https://gitlab.gnome.org/GNOME/nautilus/-/blob/3.37.80/NEWS - tracker3 program is required for migration of favourites. --- .../gnome-3/core/nautilus/default.nix | 19 +++++++++++++------ .../gnome-3/core/nautilus/fix-paths.patch | 13 +++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 pkgs/desktops/gnome-3/core/nautilus/fix-paths.patch diff --git a/pkgs/desktops/gnome-3/core/nautilus/default.nix b/pkgs/desktops/gnome-3/core/nautilus/default.nix index 6145178de1e..aca5a27e634 100644 --- a/pkgs/desktops/gnome-3/core/nautilus/default.nix +++ b/pkgs/desktops/gnome-3/core/nautilus/default.nix @@ -32,13 +32,24 @@ stdenv.mkDerivation rec { pname = "nautilus"; - version = "3.36.3"; + version = "3.38.0"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "1y0fsd7j48v4qkc051cg41mz7jycgw4vd4g37lw682p7n5xgrjmn"; + sha256 = "1h6adh474rmjva06g3wcj9g5vrvffi5hkhkfzddg7nzpygwk1wy6"; }; + patches = [ + # Allow changing extension directory using environment variable. + ./extension_dir.patch + + # Hardcode required paths. + (substituteAll { + src = ./fix-paths.patch; + inherit tracker; + }) + ]; + nativeBuildInputs = [ desktop-file-utils gettext @@ -86,10 +97,6 @@ stdenv.mkDerivation rec { patchShebangs build-aux/meson/postinstall.py ''; - patches = [ - ./extension_dir.patch - ]; - passthru = { updateScript = gnome3.updateScript { packageName = pname; diff --git a/pkgs/desktops/gnome-3/core/nautilus/fix-paths.patch b/pkgs/desktops/gnome-3/core/nautilus/fix-paths.patch new file mode 100644 index 00000000000..dc9874359b2 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/nautilus/fix-paths.patch @@ -0,0 +1,13 @@ +diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c +index 28b96c996..0b1fad9ab 100644 +--- a/src/nautilus-tag-manager.c ++++ b/src/nautilus-tag-manager.c +@@ -962,7 +962,7 @@ child_watch_cb (GPid pid, + static void + export_tracker2_data (NautilusTagManager *self) + { +- gchar *argv[] = {"tracker3", "export", "--2to3", "files-starred", "--keyfile", NULL}; ++ gchar *argv[] = {"@tracker@/bin/tracker3", "export", "--2to3", "files-starred", "--keyfile", NULL}; + gint stdout_fd; + GPid child_pid; + g_autoptr (GError) error = NULL;