2018-10-12 23:56:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perlPackages
|
2016-09-25 22:40:02 +01:00
|
|
|
, goffice, gnome3, makeWrapper, gtk3, bison, pythonPackages
|
2017-05-04 20:42:28 +01:00
|
|
|
, itstool
|
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 {
|
2018-12-24 11:41:00 +00:00
|
|
|
pname = "gnumeric";
|
|
|
|
version = "1.12.44";
|
2012-05-29 15:02:31 +01:00
|
|
|
|
2012-05-29 13:21:33 +01: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";
|
|
|
|
sha256 = "0147962c6ybdsj57rz95nla0rls7g545wc2n7pz59zmzyd5pksk0";
|
2012-05-29 13:21:33 +01:00
|
|
|
};
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--disable-component" ];
|
2012-05-29 13:21:33 +01:00
|
|
|
|
2018-12-24 11:41:00 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool bison itstool makeWrapper ];
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2015-08-11 20:34:31 +01:00
|
|
|
# ToDo: optional libgda, introspection?
|
2012-05-29 13:21:33 +01:00
|
|
|
buildInputs = [
|
2018-12-24 11:41:00 +00:00
|
|
|
goffice gtk3 gnome3.defaultIconTheme
|
|
|
|
python pygobject3
|
2018-10-12 23:56:15 +01:00
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
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" \
|
2017-07-15 08:10:43 +01:00
|
|
|
${stdenv.lib.optionalString (!stdenv.isDarwin) "--prefix GIO_EXTRA_MODULES : '${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules'"}
|
2014-04-17 10:44:11 +01:00
|
|
|
done
|
2013-12-28 14:34:08 +00:00
|
|
|
'';
|
|
|
|
|
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 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/;
|
2017-05-04 20:42:28 +01:00
|
|
|
platforms = platforms.unix;
|
2013-12-28 14:49:19 +00:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2012-05-29 13:21:33 +01:00
|
|
|
};
|
|
|
|
}
|