nixpkgs/pkgs/desktops/gnome-3/core/nautilus/default.nix

56 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, libxml2, desktop-file-utils, wrapGAppsHook
, gtk, gnome3, gnome-autoar, dbus-glib, shared-mime-info, libnotify, libexif
2018-03-15 13:25:39 +01:00
, exempi, librsvg, tracker, tracker-miners, gnome-desktop, gexiv2, libselinux, gdk_pixbuf }:
2018-03-15 13:25:39 +01:00
let
pname = "nautilus";
2018-04-13 23:52:39 +02:00
version = "3.28.1";
2018-03-15 13:25:39 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
2018-03-15 13:25:39 +01:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2018-04-13 23:52:39 +02:00
sha256 = "19dhpa2ylrg8d5274lahy7xqr2p9z3jnq1h4qmsh95czkpy7is4w";
};
nativeBuildInputs = [ meson ninja pkgconfig libxml2 gettext wrapGAppsHook desktop-file-utils ];
2018-03-15 13:25:39 +01:00
buildInputs = [
dbus-glib shared-mime-info libexif gtk exempi libnotify libselinux
tracker tracker-miners gnome-desktop gexiv2
gnome3.adwaita-icon-theme gnome3.gsettings-desktop-schemas
];
propagatedBuildInputs = [ gnome-autoar ];
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
--prefix XDG_DATA_DIRS : "${librsvg}/share"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
'';
2017-10-04 23:50:14 +02:00
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
'';
patches = [ ./extension_dir.patch ];
2018-03-15 13:25:39 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
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;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}