2018-12-13 09:13:18 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, libxml2
|
2019-02-13 22:47:50 +01:00
|
|
|
, desktop-file-utils, python3, wrapGAppsHook , gtk3, gnome3, gnome-autoar
|
2018-12-13 09:13:18 +01:00
|
|
|
, glib-networking, shared-mime-info, libnotify, libexif, libseccomp , exempi
|
|
|
|
, librsvg, tracker, tracker-miners, gexiv2, libselinux, gdk_pixbuf
|
2019-04-17 02:38:26 +02:00
|
|
|
, substituteAll, bubblewrap, gst_all_1, gsettings-desktop-schemas
|
2018-12-13 09:13:18 +01:00
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:25:39 +01:00
|
|
|
let
|
|
|
|
pname = "nautilus";
|
2019-05-16 03:14:28 +02:00
|
|
|
version = "3.32.1";
|
2018-03-15 13:25:39 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-05-16 03:14:28 +02:00
|
|
|
sha256 = "0vmrvimv4183l3ij4kv0ir2c9rfzk7gh3xc2pa4wkqq9kn7h6m7s";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-12-13 09:13:18 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig libxml2 gettext python3 wrapGAppsHook
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:25:39 +01:00
|
|
|
buildInputs = [
|
2019-02-13 22:47:50 +01:00
|
|
|
glib-networking shared-mime-info libexif gtk3 exempi libnotify libselinux
|
2019-03-03 19:30:33 +01:00
|
|
|
tracker tracker-miners gexiv2 libseccomp bubblewrap gst_all_1.gst-plugins-base
|
2019-04-17 02:38:26 +02:00
|
|
|
gnome3.adwaita-icon-theme gsettings-desktop-schemas
|
2018-03-15 13:25:39 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gnome-autoar ];
|
|
|
|
|
2017-10-01 00:22:36 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
2018-02-25 03:23:58 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
2017-10-01 00:22:36 +02:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2017-10-04 23:50:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
2018-12-13 09:13:18 +01:00
|
|
|
patches = [
|
|
|
|
./extension_dir.patch
|
|
|
|
# 3.30 now generates it's own thummbnails,
|
|
|
|
# and no longer depends on `gnome-desktop`
|
|
|
|
(substituteAll {
|
|
|
|
src = ./bubblewrap-paths.patch;
|
|
|
|
bubblewrap_bin = "${bubblewrap}/bin/bwrap";
|
|
|
|
inherit (builtins) storeDir;
|
|
|
|
})
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:25:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-15 13:25:39 +01:00
|
|
|
description = "The file manager for GNOME";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Files;
|
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|