2018-10-12 22:56:15 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perlPackages
|
2019-01-26 15:23:23 +00:00
|
|
|
, goffice, gnome3, wrapGAppsHook, gtk3, bison, pythonPackages
|
2019-06-20 05:43:21 +00:00
|
|
|
, itstool, autoreconfHook
|
2012-05-29 12:21:33 +00:00
|
|
|
}:
|
|
|
|
|
2016-09-25 21:40:02 +00:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pygobject3;
|
|
|
|
in stdenv.mkDerivation rec {
|
2018-12-24 11:41:00 +00:00
|
|
|
pname = "gnumeric";
|
2019-06-20 05:43:21 +00:00
|
|
|
version = "1.12.45"; # TODO next release: remove gamma patch and autoreconfHook
|
2012-05-29 14:02:31 +00:00
|
|
|
|
2012-05-29 12:21:33 +00:00
|
|
|
src = fetchurl {
|
2018-12-24 11:41:00 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-06-07 01:23:15 +00:00
|
|
|
sha256 = "0c8dl1kvnj3g32qy3s92qpqpqfy0in59cx005gjvvzsflahav61h";
|
2012-05-29 12:21:33 +00:00
|
|
|
};
|
|
|
|
|
2019-06-20 05:43:21 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnumeric/issues/402
|
|
|
|
(fetchurl {
|
|
|
|
name = "math-gamma.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnumeric/uploads/cf8d162bc719de92e97d01cb0ba5b637/ppp";
|
|
|
|
sha256 = "17wiigs06qc86a1nghwcg3pcnpa28123jblgsxpy3j7drardgnlp";
|
|
|
|
});
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--disable-component" ];
|
2012-05-29 12:21:33 +00:00
|
|
|
|
2019-06-20 05:43:21 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool bison itstool wrapGAppsHook ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
2017-09-14 19:24:37 +00:00
|
|
|
|
2015-08-11 19:34:31 +00:00
|
|
|
# ToDo: optional libgda, introspection?
|
2012-05-29 12:21:33 +00:00
|
|
|
buildInputs = [
|
2019-02-13 21:47:50 +00:00
|
|
|
goffice gtk3 gnome3.adwaita-icon-theme
|
2018-12-24 11:41:00 +00:00
|
|
|
python pygobject3
|
2018-10-12 22:56:15 +00:00
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
2012-05-29 12:21:33 +00:00
|
|
|
|
2015-05-24 17:52:57 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-12-24 11:41:00 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-12-28 14:49:19 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-05-29 12:21:33 +00:00
|
|
|
description = "The GNOME Office Spreadsheet";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-05-29 12:21:33 +00:00
|
|
|
homepage = http://projects.gnome.org/gnumeric/;
|
2017-05-04 19:42:28 +00:00
|
|
|
platforms = platforms.unix;
|
2013-12-28 14:49:19 +00:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2012-05-29 12:21:33 +00:00
|
|
|
};
|
|
|
|
}
|