2013-12-28 06:34:08 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
|
2016-09-25 14:40:02 -07:00
|
|
|
, goffice, gnome3, makeWrapper, gtk3, bison, pythonPackages
|
2017-05-04 12:42:28 -07:00
|
|
|
, itstool
|
2012-05-29 05:21:33 -07:00
|
|
|
}:
|
|
|
|
|
2016-09-25 14:40:02 -07:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pygobject3;
|
2017-05-04 12:42:28 -07:00
|
|
|
isopub = fetchurl { url = http://www.oasis-open.org/docbook/xml/4.5/ent/isopub.ent; sha256 = "073l492jz70chcadr2p7ssx7gz5hd731s2cazhxx4r845kilyr77"; };
|
|
|
|
isonum = fetchurl { url = http://www.oasis-open.org/docbook/xml/4.5/ent/isonum.ent; sha256 = "04b62dw2g3cj9i4vn9xyrsrlz8fpmmijq98dm0nrkky31bwbbrs3"; };
|
|
|
|
isogrk1 = fetchurl { url = http://www.oasis-open.org/docbook/xml/4.5/ent/isogrk1.ent; sha256 = "04b23anhs5wr62n4rgsjirzvw7rpjcsf8smz4ffzaqh3b0vw90vm"; };
|
2016-09-25 14:40:02 -07:00
|
|
|
in stdenv.mkDerivation rec {
|
2017-05-04 12:42:28 -07:00
|
|
|
name = "gnumeric-1.12.34";
|
2012-05-29 07:02:31 -07:00
|
|
|
|
2012-05-29 05:21:33 -07:00
|
|
|
src = fetchurl {
|
2013-02-05 02:59:26 -08:00
|
|
|
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
|
2017-05-04 12:42:28 -07:00
|
|
|
sha256 = "0b4920812d82ec4c25204543dff9dd3bdbac17bfaaabd1aa02d47fbe2981c725";
|
2012-05-29 05:21:33 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--disable-component";
|
|
|
|
|
2017-05-04 12:42:28 -07:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace doc/C/gnumeric.xml \
|
|
|
|
--replace http://www.oasis-open.org/docbook/xml/4.5/ent/isopub.ent ${isopub} \
|
|
|
|
--replace http://www.oasis-open.org/docbook/xml/4.5/ent/isonum.ent ${isonum} \
|
|
|
|
--replace http://www.oasis-open.org/docbook/xml/4.5/ent/isogrk1.ent ${isogrk1}
|
|
|
|
'';
|
|
|
|
|
2015-08-11 12:34:31 -07:00
|
|
|
# ToDo: optional libgda, introspection?
|
2012-05-29 05:21:33 -07:00
|
|
|
buildInputs = [
|
2016-08-26 04:21:44 -07:00
|
|
|
pkgconfig intltool perl perlXMLParser bison
|
2015-06-11 11:50:43 -07:00
|
|
|
goffice gtk3 makeWrapper gnome3.defaultIconTheme
|
2017-05-04 12:42:28 -07:00
|
|
|
python pygobject3 itstool
|
2012-05-29 05:21:33 -07:00
|
|
|
];
|
|
|
|
|
2015-05-24 10:52:57 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-04-17 02:44:11 -07:00
|
|
|
preFixup = ''
|
|
|
|
for f in "$out"/bin/gnumeric-*; do
|
|
|
|
wrapProgram $f \
|
2015-02-13 06:33:55 -08:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
2016-08-26 02:34:40 -07:00
|
|
|
${stdenv.lib.optionalString (!stdenv.isDarwin) "--prefix GIO_EXTRA_MODULES : '${gnome3.dconf}/lib/gio/modules'"}
|
2014-04-17 02:44:11 -07:00
|
|
|
done
|
2013-12-28 06:34:08 -08:00
|
|
|
'';
|
|
|
|
|
2013-12-28 06:49:19 -08:00
|
|
|
meta = with stdenv.lib; {
|
2012-05-29 05:21:33 -07:00
|
|
|
description = "The GNOME Office Spreadsheet";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-05-29 05:21:33 -07:00
|
|
|
homepage = http://projects.gnome.org/gnumeric/;
|
2017-05-04 12:42:28 -07:00
|
|
|
platforms = platforms.unix;
|
2013-12-28 06:49:19 -08:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2012-05-29 05:21:33 -07:00
|
|
|
};
|
|
|
|
}
|