nixpkgs/pkgs/applications/office/gnumeric/default.nix
Vincent Laporte 62074ab09a gnumeric: 1.12.20 -> 1.12.23 (close #9206)
Adds python support
2015-08-11 22:17:52 +02:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
, goffice, gnome3, makeWrapper, gtk3
, python, pygobject3
}:
stdenv.mkDerivation rec {
name = "gnumeric-1.12.23";
src = fetchurl {
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
sha256 = "0lcmw4jrfg9y2fhx13xw8w85vi7bcmgyn2sdjxi21xkh3szlqiq0";
};
configureFlags = "--disable-component";
# ToDo: optional libgda, introspection?
buildInputs = [
pkgconfig intltool perl perlXMLParser
goffice gtk3 makeWrapper gnome3.defaultIconTheme
python pygobject3
];
enableParallelBuilding = true;
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"
done
'';
meta = with stdenv.lib; {
description = "The GNOME Office Spreadsheet";
license = stdenv.lib.licenses.gpl2Plus;
homepage = http://projects.gnome.org/gnumeric/;
platforms = platforms.linux;
maintainers = [ maintainers.vcunat ];
};
}