2013-12-28 15:34:08 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
|
|
|
|
, goffice, makeWrapper, gtk3, gnome_icon_theme
|
2012-05-29 14:21:33 +02:00
|
|
|
}:
|
|
|
|
|
2013-02-05 11:59:26 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-21 17:13:03 +01:00
|
|
|
name = "gnumeric-1.12.9";
|
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";
|
2013-12-21 17:13:03 +01:00
|
|
|
sha256 = "1rv2ifw6rp0iza4fkf3bffvdkyi77dwvzdnvcbpqcyn2kxfsvlsc";
|
2012-05-29 14:21:33 +02:00
|
|
|
};
|
|
|
|
|
2013-12-28 15:34:08 +01:00
|
|
|
preConfigure = ''sed -i 's/\(SUBDIRS.*\) doc/\1/' Makefile.in''; # fails when installing docs
|
|
|
|
|
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
|
|
|
|
goffice gtk3 makeWrapper
|
2012-05-29 14:21:33 +02:00
|
|
|
];
|
|
|
|
|
2013-12-28 15:34:08 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out"/bin/gnumeric-* \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome_icon_theme}/share"
|
|
|
|
'';
|
|
|
|
|
2012-05-29 14:21:33 +02:00
|
|
|
meta = {
|
|
|
|
description = "The GNOME Office Spreadsheet";
|
|
|
|
license = "GPLv2+";
|
|
|
|
homepage = http://projects.gnome.org/gnumeric/;
|
|
|
|
};
|
|
|
|
}
|