12 , udevSupport ? stdenv.isLinux
30 , gnomeSupport ? false
34 , gnome-online-accounts
44 , gsettings-desktop-schemas
47 stdenv.mkDerivation rec {
52 url = "mirror://gnome/sources/gvfs/${lib.versions.majorMinor version}/gvfs-${version}.tar.xz";
53 hash = "sha256-xPbhH8TqqZM/TbjHo0R14GaM6tK//tloZ9Bhvj053aU=";
58 src = ./hardcode-ssh-path.patch;
59 ssh_program = "${lib.getBin openssh}/bin/ssh";
64 # patchShebangs requires executable file
65 chmod +x meson_post_install.py
66 patchShebangs meson_post_install.py
67 patchShebangs test test-driver
93 gsettings-desktop-schemas
95 ] ++ lib.optionals udevSupport [
105 ] ++ lib.optionals gnomeSupport [
107 glib-networking # TLS support
108 gnome-online-accounts
114 "-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
116 ] ++ lib.optionals (!udevSupport) [
127 ] ++ lib.optionals (!gnomeSupport) [
132 ] ++ lib.optionals (avahi == null) [
134 ] ++ lib.optionals (samba == null) [
135 # Xfce don't want samba
139 doCheck = false; # fails with "ModuleNotFoundError: No module named 'gi'"
140 doInstallCheck = doCheck;
142 separateDebugInfo = true;
145 updateScript = gnome.updateScript {
147 versionPolicy = "odd-unstable";
152 description = "Virtual Filesystem support library" + optionalString gnomeSupport " (full GNOME support)";
153 license = licenses.lgpl2Plus;
154 platforms = platforms.unix;
155 maintainers = teams.gnome.members;