nixpkgs/pkgs/applications/office/gnumeric/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
, goffice, gnome3, makeWrapper, gtk3
, python, pygobject3
}:
stdenv.mkDerivation rec {
2015-10-28 08:30:16 +01:00
name = "gnumeric-1.12.24";
src = fetchurl {
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
2015-10-28 08:30:16 +01:00
sha256 = "0lcm8k0jb8rd5y4ii803f21nv8rx6gc3mmdlrj5h0rkkn9qm57f5";
};
configureFlags = "--disable-component";
# ToDo: optional libgda, introspection?
buildInputs = [
pkgconfig intltool perl perlXMLParser
goffice gtk3 makeWrapper gnome3.defaultIconTheme
python pygobject3
];
enableParallelBuilding = true;
2014-04-17 11:44:11 +02:00
preFixup = ''
for f in "$out"/bin/gnumeric-*; do
wrapProgram $f \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
2014-04-17 11:44:11 +02:00
done
'';
2013-12-28 15:49:19 +01:00
meta = with stdenv.lib; {
description = "The GNOME Office Spreadsheet";
license = stdenv.lib.licenses.gpl2Plus;
homepage = http://projects.gnome.org/gnumeric/;
2013-12-28 15:49:19 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.vcunat ];
};
}