2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2023-02-09 11:40:11 +00:00
|
|
|
, fetchpatch2
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, dbus
|
|
|
|
, glib
|
2022-10-30 15:09:59 +00:00
|
|
|
, udevSupport ? stdenv.isLinux
|
2020-04-24 23:36:52 +00:00
|
|
|
, libgudev
|
|
|
|
, udisks2
|
|
|
|
, libgcrypt
|
|
|
|
, libcap
|
|
|
|
, polkit
|
|
|
|
, libgphoto2
|
|
|
|
, avahi
|
|
|
|
, libarchive
|
|
|
|
, fuse3
|
|
|
|
, libcdio
|
|
|
|
, libxml2
|
2022-03-30 09:31:56 +00:00
|
|
|
, libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, samba
|
|
|
|
, libmtp
|
|
|
|
, gnomeSupport ? false
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gcr
|
|
|
|
, glib-networking
|
|
|
|
, gnome-online-accounts
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libimobiledevice
|
|
|
|
, libbluray
|
|
|
|
, libcdio-paranoia
|
|
|
|
, libnfs
|
|
|
|
, openssh
|
|
|
|
, libsecret
|
|
|
|
, libgdata
|
|
|
|
, python3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gvfs";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "1.50.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "aJcRnpe7FgKdJ3jhpaVKamWSYx+LLzoqHepO8rAYA/0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
patches = [
|
|
|
|
# Hardcode the ssh path again.
|
|
|
|
# https://gitlab.gnome.org/GNOME/gvfs/-/issues/465
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gvfs/-/commit/8327383e262e1e7f32750a8a2d3dd708195b0f53.patch";
|
|
|
|
hash = "sha256-ReD7qkezGeiJHyo9jTqEQNBjECqGhV9nSD+dYYGZWJ8=";
|
|
|
|
revert = true;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
# patchShebangs requires executable file
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs test test-driver
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgcrypt
|
|
|
|
dbus
|
|
|
|
libgphoto2
|
|
|
|
avahi
|
|
|
|
libarchive
|
2022-10-30 15:09:59 +00:00
|
|
|
libimobiledevice
|
|
|
|
libbluray
|
|
|
|
libnfs
|
|
|
|
openssh
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
libsoup_3
|
|
|
|
] ++ lib.optionals udevSupport [
|
|
|
|
libgudev
|
|
|
|
udisks2
|
2020-04-24 23:36:52 +00:00
|
|
|
fuse3
|
|
|
|
libcdio
|
|
|
|
samba
|
|
|
|
libmtp
|
|
|
|
libcap
|
|
|
|
polkit
|
|
|
|
libcdio-paranoia
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals gnomeSupport [
|
2020-04-24 23:36:52 +00:00
|
|
|
gcr
|
|
|
|
glib-networking # TLS support
|
|
|
|
gnome-online-accounts
|
|
|
|
libsecret
|
|
|
|
libgdata
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
|
|
|
"-Dtmpfilesdir=no"
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals (!udevSupport) [
|
|
|
|
"-Dgudev=false"
|
|
|
|
"-Dudisks2=false"
|
|
|
|
"-Dfuse=false"
|
|
|
|
"-Dcdda=false"
|
|
|
|
"-Dsmb=false"
|
|
|
|
"-Dmtp=false"
|
|
|
|
"-Dadmin=false"
|
|
|
|
"-Dgphoto2=false"
|
|
|
|
"-Dlibusb=false"
|
|
|
|
"-Dlogind=false"
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals (!gnomeSupport) [
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Dgcr=false"
|
|
|
|
"-Dgoa=false"
|
|
|
|
"-Dkeyring=false"
|
|
|
|
"-Dgoogle=false"
|
2022-03-05 16:20:37 +00:00
|
|
|
] ++ lib.optionals (avahi == null) [
|
|
|
|
"-Ddnssd=false"
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals (samba == null) [
|
2020-04-24 23:36:52 +00:00
|
|
|
# Xfce don't want samba
|
|
|
|
"-Dsmb=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # fails with "ModuleNotFoundError: No module named 'gi'"
|
|
|
|
doInstallCheck = doCheck;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Virtual Filesystem support library" + optionalString gnomeSupport " (full GNOME support)";
|
|
|
|
license = licenses.lgpl2Plus;
|
2022-10-30 15:09:59 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = teams.gnome.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|