3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/nautilus/default.nix

119 lines
2.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, meson
, ninja
2021-01-17 02:21:50 +00:00
, pkg-config
, gettext
, libxml2
, desktop-file-utils
, python3
, wrapGAppsHook
, gtk3
2021-03-21 05:15:47 +00:00
, libhandy
, libportal
, gnome
, gnome-autoar
, glib-networking
, shared-mime-info
, libnotify
, libexif
, libseccomp
, exempi
, librsvg
, tracker
, tracker-miners
, gexiv2
, libselinux
, gdk-pixbuf
, substituteAll
, gnome-desktop
, gst_all_1
, gsettings-desktop-schemas
, gobject-introspection
}:
stdenv.mkDerivation rec {
2018-03-15 12:25:39 +00:00
pname = "nautilus";
2021-10-02 00:07:37 +01:00
version = "41.0";
src = fetchurl {
2021-03-21 05:15:47 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
2021-10-02 00:07:37 +01:00
sha256 = "+blBrcEEcAxn6kB2YiMV8fa3fc7BVMN/PUwLKDlQoeU=";
};
patches = [
# Allow changing extension directory using environment variable.
./extension_dir.patch
# Hardcode required paths.
(substituteAll {
src = ./fix-paths.patch;
inherit tracker;
})
];
nativeBuildInputs = [
desktop-file-utils
gettext
gobject-introspection
libxml2
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
python3
wrapGAppsHook
];
2018-03-15 12:25:39 +00:00
buildInputs = [
exempi
gexiv2
glib-networking
gnome-desktop
gnome.adwaita-icon-theme
gsettings-desktop-schemas
gst_all_1.gst-plugins-base
gtk3
2021-03-21 05:15:47 +00:00
libhandy
libportal
libexif
libnotify
libseccomp
libselinux
shared-mime-info
tracker
tracker-miners
2018-03-15 12:25:39 +00:00
];
propagatedBuildInputs = [
gnome-autoar
];
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
2019-05-22 12:03:39 +01:00
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
--prefix XDG_DATA_DIRS : "${librsvg}/share"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';
2017-10-04 22:50:14 +01:00
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
'';
2018-03-15 12:25:39 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-15 12:25:39 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-15 12:25:39 +00:00
};
};
meta = with lib; {
2018-03-15 12:25:39 +00:00
description = "The file manager for GNOME";
homepage = "https://wiki.gnome.org/Apps/Files";
2018-03-15 12:25:39 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.gnome.members;
};
}