2013-12-28 14:34:08 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
|
2016-09-25 22:40:02 +01:00
|
|
|
, goffice, gnome3, makeWrapper, gtk3, bison, pythonPackages
|
2012-05-29 13:21:33 +01:00
|
|
|
}:
|
|
|
|
|
2016-09-25 22:40:02 +01:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pygobject3;
|
|
|
|
in stdenv.mkDerivation rec {
|
2016-08-26 12:21:44 +01:00
|
|
|
name = "gnumeric-1.12.32";
|
2012-05-29 15:02:31 +01:00
|
|
|
|
2012-05-29 13:21:33 +01:00
|
|
|
src = fetchurl {
|
2013-02-05 10:59:26 +00:00
|
|
|
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
|
2016-08-26 12:21:44 +01:00
|
|
|
sha256 = "a07bc83e2adaeb94bfa2c737c9a19d90381a19cb203dd7c4d5f7d6cfdbee6de8";
|
2012-05-29 13:21:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--disable-component";
|
|
|
|
|
2015-08-11 20:34:31 +01:00
|
|
|
# ToDo: optional libgda, introspection?
|
2012-05-29 13:21:33 +01:00
|
|
|
buildInputs = [
|
2016-08-26 12:21:44 +01:00
|
|
|
pkgconfig intltool perl perlXMLParser bison
|
2015-06-11 19:50:43 +01:00
|
|
|
goffice gtk3 makeWrapper gnome3.defaultIconTheme
|
2015-08-11 20:34:31 +01:00
|
|
|
python pygobject3
|
2012-05-29 13:21:33 +01:00
|
|
|
];
|
|
|
|
|
2015-05-24 18:52:57 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-04-17 10:44:11 +01:00
|
|
|
preFixup = ''
|
|
|
|
for f in "$out"/bin/gnumeric-*; do
|
|
|
|
wrapProgram $f \
|
2015-02-13 14:33:55 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
2016-08-26 10:34:40 +01:00
|
|
|
${stdenv.lib.optionalString (!stdenv.isDarwin) "--prefix GIO_EXTRA_MODULES : '${gnome3.dconf}/lib/gio/modules'"}
|
2014-04-17 10:44:11 +01:00
|
|
|
done
|
2013-12-28 14:34:08 +00:00
|
|
|
'';
|
|
|
|
|
2013-12-28 14:49:19 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-05-29 13:21:33 +01:00
|
|
|
description = "The GNOME Office Spreadsheet";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-05-29 13:21:33 +01:00
|
|
|
homepage = http://projects.gnome.org/gnumeric/;
|
2013-12-28 14:49:19 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
2012-05-29 13:21:33 +01:00
|
|
|
};
|
|
|
|
}
|