anchor.diff:      sha256 = "1fsn6aa9a68cfbna9s00l1ry4ym1fr7ii2f45hzj2fipxfpqihwy";
     };
   
  -  postPatch = ''
  -    chmod +x meson_post_install.py # patchShebangs requires executable file
  -    patchShebangs meson_post_install.py
  -  '';
  +  # Uncomment when switching back to meson
  +  # postPatch = ''
  +  #   chmod +x meson_post_install.py # patchShebangs requires executable file
  +  #   patchShebangs meson_post_install.py
  +  # '';
   
     nativeBuildInputs = [
  -    meson ninja
  +    autoreconfHook # Remove when switching to meson
  +    # meson ninja
       pkgconfig gettext makeWrapper
       libxml2 libxslt docbook_xsl docbook_xml_dtd_42
     ];
  
positive.code: , gnomeSupport ? false, gnome, makeWrapper
  , libimobiledevice, libbluray, libcdio-paranoia, libnfs, openssh
  , libsecret, libgdata
  }:
  
  let
    pname = "gvfs";
  
negative.code:       libgphoto2 avahi libarchive fuse libcdio
        samba libmtp libcap polkit libimobiledevice libbluray
        libcdio-paranoia libnfs openssh
        # Remove when switching back to meson
        lzma bzip2
        # ToDo: a ligther version of libsoup to have FTP/HTTP support?
      ] ++ stdenv.lib.optionals gnomeSupport (with gnome; [
        libsoup gcr
        gnome-online-accounts libsecret libgdata
      ]);
  
    # Remove when switching back to meson
    configureFlags = stdenv.lib.optional (!gnomeSupport) "--disable-gcr";
  
    # Uncomment when switching back to meson
    # mesonFlags = [
    #   "-Dgio_module_dir=lib/gio/modules"
    #   "-Dsystemduserunitdir=lib/systemd/user"
    #   "-Ddbus_service_dir=share/dbus-1/services"
    #   "-Dtmpfilesdir=no"
    # ] ++ stdenv.lib.optionals (!gnomeSupport) [
    #   "-Dgcr=false" "-Dgoa=false" "-Dkeyring=false" "-Dhttp=false"
    #   "-Dgoogle=false"
    # ] ++ stdenv.lib.optionals (samba == null) [
    #   # Xfce don't want samba
    #   "-Dsmb=false"
    # ];
  
    enableParallelBuilding = true;
  
  