2024-06-13 09:37:26 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
gi-docgen,
|
|
|
|
docbook-xsl-nons,
|
|
|
|
gettext,
|
|
|
|
desktop-file-utils,
|
2024-08-11 12:33:11 +00:00
|
|
|
wayland-scanner,
|
2024-06-13 09:37:26 +00:00
|
|
|
wrapGAppsHook4,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
libportal-gtk4,
|
|
|
|
gnome,
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme,
|
2024-06-13 09:37:26 +00:00
|
|
|
gnome-autoar,
|
|
|
|
glib-networking,
|
|
|
|
shared-mime-info,
|
|
|
|
libnotify,
|
|
|
|
libexif,
|
|
|
|
libjxl,
|
|
|
|
libseccomp,
|
|
|
|
librsvg,
|
|
|
|
webp-pixbuf-loader,
|
2024-09-05 12:26:23 +00:00
|
|
|
tinysparql,
|
2024-09-05 12:14:36 +00:00
|
|
|
localsearch,
|
2024-06-13 09:37:26 +00:00
|
|
|
gexiv2,
|
|
|
|
libselinux,
|
|
|
|
libcloudproviders,
|
|
|
|
gdk-pixbuf,
|
|
|
|
gnome-desktop,
|
|
|
|
gst_all_1,
|
|
|
|
gsettings-desktop-schemas,
|
|
|
|
gnome-user-share,
|
|
|
|
gobject-introspection,
|
2018-12-13 08:13:18 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2023-12-09 11:19:01 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-03-15 12:25:39 +00:00
|
|
|
pname = "nautilus";
|
2024-09-17 13:28:18 +00:00
|
|
|
version = "47.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2024-06-13 09:37:26 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"devdoc"
|
|
|
|
];
|
2021-10-13 15:48:28 +00:00
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
src = fetchurl {
|
2023-12-09 11:19:01 +00:00
|
|
|
url = "mirror://gnome/sources/nautilus/${lib.versions.major finalAttrs.version}/nautilus-${finalAttrs.version}.tar.xz";
|
2024-09-17 13:28:18 +00:00
|
|
|
hash = "sha256-M0Jkzdntv9le57yq/kQuvtMazKPy2bkPPtow6s/QOHo=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 19:02:36 +00:00
|
|
|
patches = [
|
|
|
|
# Allow changing extension directory using environment variable.
|
|
|
|
./extension_dir.patch
|
|
|
|
];
|
|
|
|
|
2018-12-13 08:13:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2019-09-02 16:45:54 +00:00
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2022-09-04 18:55:44 +00:00
|
|
|
gi-docgen
|
2022-08-10 18:37:33 +00:00
|
|
|
docbook-xsl-nons
|
2024-08-11 12:33:11 +00:00
|
|
|
wayland-scanner
|
2022-07-23 15:46:35 +00:00
|
|
|
wrapGAppsHook4
|
2018-12-13 08:13:18 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-15 12:25:39 +00:00
|
|
|
buildInputs = [
|
2019-09-02 16:45:54 +00:00
|
|
|
gexiv2
|
|
|
|
glib-networking
|
|
|
|
gnome-desktop
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme
|
2019-09-02 16:45:54 +00:00
|
|
|
gsettings-desktop-schemas
|
2022-08-07 17:11:53 +00:00
|
|
|
gnome-user-share
|
2019-09-02 16:45:54 +00:00
|
|
|
gst_all_1.gst-plugins-base
|
2022-07-23 15:46:35 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libportal-gtk4
|
2019-09-02 16:45:54 +00:00
|
|
|
libexif
|
|
|
|
libnotify
|
|
|
|
libseccomp
|
|
|
|
libselinux
|
2022-08-07 17:11:53 +00:00
|
|
|
gdk-pixbuf
|
|
|
|
libcloudproviders
|
2019-09-02 16:45:54 +00:00
|
|
|
shared-mime-info
|
2024-09-05 12:26:23 +00:00
|
|
|
tinysparql
|
2024-09-05 12:14:36 +00:00
|
|
|
localsearch
|
2022-07-23 15:46:35 +00:00
|
|
|
gnome-autoar
|
2018-03-15 12:25:39 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-09-02 16:45:54 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-07-23 15:46:35 +00:00
|
|
|
gtk4
|
2019-09-02 16:45:54 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2022-08-10 18:37:33 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=true"
|
|
|
|
];
|
|
|
|
|
2017-09-30 22:22:36 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
2019-05-22 11:03:39 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
2023-11-24 05:33:02 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${libjxl}/share"
|
2017-09-30 22:22:36 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
2022-10-21 06:35:56 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${webp-pixbuf-loader}/share"
|
2018-02-25 02:23:58 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
2017-09-30 22:22:36 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2022-09-04 18:55:44 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2018-03-15 12:25:39 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2023-12-09 11:19:01 +00:00
|
|
|
packageName = "nautilus";
|
2018-03-15 12:25:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-15 12:25:39 +00:00
|
|
|
description = "File manager for GNOME";
|
2024-05-01 05:03:10 +00:00
|
|
|
homepage = "https://apps.gnome.org/Nautilus/";
|
2018-03-15 12:25:39 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2024-01-29 19:54:00 +00:00
|
|
|
mainProgram = "nautilus";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
2023-12-09 11:19:01 +00:00
|
|
|
})
|