diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index 27d3e41e98dd..07096c5620d0 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -56,6 +56,8 @@ rec { #### Apps (http://ftp.acc.umu.se/pub/GNOME/apps/) + file-roller = callPackage ./desktop/file-roller { }; + gnome_dictionary = callPackage ./desktop/gnome-dictionary { }; gnome_desktop = callPackage ./desktop/gnome-desktop { }; diff --git a/pkgs/desktops/gnome-3/desktop/file-roller/default.nix b/pkgs/desktops/gnome-3/desktop/file-roller/default.nix new file mode 100644 index 000000000000..0f48103c93d4 --- /dev/null +++ b/pkgs/desktops/gnome-3/desktop/file-roller/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, glib, pkgconfig, gnome3, intltool, itstool, libxml2, libarchive +, attr, bzip2, acl, makeWrapper }: + +stdenv.mkDerivation rec { + name = "file-roller-${version}"; + + majVersion = "3.10"; + version = "${majVersion}.2.1"; + + src = fetchurl { + url = "mirror://gnome/sources/file-roller/${majVersion}/${name}.tar.xz"; + sha256 = "14374z1yfbjlgpl4k1ih8b35x8kzvh99y22rwwkc2wfz0d0i1qgx"; + }; + + # TODO: support nautilus + # it tries to create {nautilus}/lib/nautilus/extensions-3.0/libnautilus-fileroller.so + + buildInputs = [ glib pkgconfig gnome3.gtk intltool itstool libxml2 libarchive + attr bzip2 acl makeWrapper ]; + + postInstall = '' + wrapProgram "$out/bin/file-roller" \ + --prefix XDG_DATA_DIRS : "${gnome3.gtk}/share:$out/share" + ''; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +}