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