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

56 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, libxml2, desktop-file-utils, python3, wrapGAppsHook
2018-09-05 01:51:42 +01:00
, gtk, gnome3, gnome-autoar, glib-networking, shared-mime-info, libnotify, libexif, libseccomp
2018-03-15 12:25:39 +00:00
, exempi, librsvg, tracker, tracker-miners, gnome-desktop, gexiv2, libselinux, gdk_pixbuf }:
2018-03-15 12:25:39 +00:00
let
pname = "nautilus";
2018-09-05 01:51:42 +01:00
version = "3.30.4";
2018-03-15 12:25:39 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-05 01:51:42 +01:00
sha256 = "1fcavvv85mpaz53k5kx5mls7npx7b95s8isnhrgq2iglz4kpr7s1";
};
nativeBuildInputs = [ meson ninja pkgconfig libxml2 gettext python3 wrapGAppsHook desktop-file-utils ];
2018-03-15 12:25:39 +00:00
buildInputs = [
glib-networking shared-mime-info libexif gtk exempi libnotify libselinux
2018-09-05 01:51:42 +01:00
tracker tracker-miners gnome-desktop gexiv2 libseccomp
2018-03-15 12:25:39 +00:00
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 22:50:14 +01:00
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
'';
patches = [ ./extension_dir.patch ];
2018-03-15 12:25:39 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
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;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}