nixpkgs/pkgs/desktops/gnome-3/3.16/apps/file-roller/default.nix
2015-04-25 12:02:33 +02:00

34 lines
1.1 KiB
Nix

{ stdenv, fetchurl, glib, pkgconfig, gnome3, intltool, itstool, libxml2, libarchive
, attr, bzip2, acl, makeWrapper, librsvg, gdk_pixbuf, hicolor_icon_theme }:
stdenv.mkDerivation rec {
name = "file-roller-${version}";
majVersion = gnome3.version;
version = "${majVersion}.1";
src = fetchurl {
url = "mirror://gnome/sources/file-roller/${majVersion}/${name}.tar.xz";
sha256 = "12c6lpvc3mi1q10nas64kfcjw2arv3z4955zdfgf4c5wy4dczqyh";
};
# 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
hicolor_icon_theme gnome3.adwaita-icon-theme
attr bzip2 acl gdk_pixbuf librsvg makeWrapper ];
preFixup = ''
wrapProgram "$out/bin/file-roller" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share"
'';
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/FileRoller;
description = "Archive manager for the GNOME desktop environment";
platforms = platforms.linux;
maintainers = [ maintainers.lethalman ];
};
}