2018-09-03 23:04:46 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, libxml2, desktop-file-utils, python3, wrapGAppsHook
|
2018-10-21 19:54:26 +01:00
|
|
|
, gtk, gnome3, gnome-autoar, glib-networking, shared-mime-info, libnotify, libexif
|
2018-03-15 12:25:39 +00:00
|
|
|
, exempi, librsvg, tracker, tracker-miners, gnome-desktop, gexiv2, libselinux, gdk_pixbuf }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:25:39 +00:00
|
|
|
let
|
|
|
|
pname = "nautilus";
|
2018-04-13 22:52:39 +01:00
|
|
|
version = "3.28.1";
|
2018-03-15 12:25:39 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-04-13 22:52:39 +01:00
|
|
|
sha256 = "19dhpa2ylrg8d5274lahy7xqr2p9z3jnq1h4qmsh95czkpy7is4w";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-09-03 23:04:46 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig libxml2 gettext python3 wrapGAppsHook desktop-file-utils ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:25:39 +00:00
|
|
|
buildInputs = [
|
2018-10-21 19:54:26 +01:00
|
|
|
glib-networking shared-mime-info libexif gtk exempi libnotify libselinux
|
2018-03-15 12:25:39 +00:00
|
|
|
tracker tracker-miners gnome-desktop gexiv2
|
|
|
|
gnome3.adwaita-icon-theme gnome3.gsettings-desktop-schemas
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gnome-autoar ];
|
|
|
|
|
2017-09-30 23:22:36 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
2018-02-25 02:23:58 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
2017-09-30 23:22:36 +01:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
patches = [ ./extension_dir.patch ];
|
|
|
|
|
2018-03-15 12:25:39 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-15 12:25:39 +00:00
|
|
|
description = "The file manager for GNOME";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Files;
|
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|