mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
5e3db89ad0
https://gitlab.gnome.org/GNOME/nautilus/-/compare/47.beta.1...47.0 Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
136 lines
2.5 KiB
Nix
136 lines
2.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gi-docgen,
|
|
docbook-xsl-nons,
|
|
gettext,
|
|
desktop-file-utils,
|
|
wayland-scanner,
|
|
wrapGAppsHook4,
|
|
gtk4,
|
|
libadwaita,
|
|
libportal-gtk4,
|
|
gnome,
|
|
adwaita-icon-theme,
|
|
gnome-autoar,
|
|
glib-networking,
|
|
shared-mime-info,
|
|
libnotify,
|
|
libexif,
|
|
libjxl,
|
|
libseccomp,
|
|
librsvg,
|
|
webp-pixbuf-loader,
|
|
tinysparql,
|
|
localsearch,
|
|
gexiv2,
|
|
libselinux,
|
|
libcloudproviders,
|
|
gdk-pixbuf,
|
|
gnome-desktop,
|
|
gst_all_1,
|
|
gsettings-desktop-schemas,
|
|
gnome-user-share,
|
|
gobject-introspection,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nautilus";
|
|
version = "47.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devdoc"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/nautilus/${lib.versions.major finalAttrs.version}/nautilus-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-M0Jkzdntv9le57yq/kQuvtMazKPy2bkPPtow6s/QOHo=";
|
|
};
|
|
|
|
patches = [
|
|
# Allow changing extension directory using environment variable.
|
|
./extension_dir.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gi-docgen
|
|
docbook-xsl-nons
|
|
wayland-scanner
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gexiv2
|
|
glib-networking
|
|
gnome-desktop
|
|
adwaita-icon-theme
|
|
gsettings-desktop-schemas
|
|
gnome-user-share
|
|
gst_all_1.gst-plugins-base
|
|
gtk4
|
|
libadwaita
|
|
libportal-gtk4
|
|
libexif
|
|
libnotify
|
|
libseccomp
|
|
libselinux
|
|
gdk-pixbuf
|
|
libcloudproviders
|
|
shared-mime-info
|
|
tinysparql
|
|
localsearch
|
|
gnome-autoar
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gtk4
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddocs=true"
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
# Thumbnailers
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
|
--prefix XDG_DATA_DIRS : "${libjxl}/share"
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
|
--prefix XDG_DATA_DIRS : "${webp-pixbuf-loader}/share"
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
)
|
|
'';
|
|
|
|
postFixup = ''
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
moveToOutput "share/doc" "$devdoc"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "nautilus";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "File manager for GNOME";
|
|
homepage = "https://apps.gnome.org/Nautilus/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.gnome.members;
|
|
mainProgram = "nautilus";
|
|
};
|
|
})
|