2013-12-28 14:34:08 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
|
|
|
|
, goffice, makeWrapper, gtk3, gnome_icon_theme
|
2012-05-29 12:21:33 +00:00
|
|
|
}:
|
|
|
|
|
2013-02-05 10:59:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-03-13 21:55:52 +00:00
|
|
|
name = "gnumeric-1.12.12";
|
2012-05-29 14:02:31 +00:00
|
|
|
|
2012-05-29 12:21:33 +00:00
|
|
|
src = fetchurl {
|
2013-02-05 10:59:26 +00:00
|
|
|
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
|
2014-03-13 21:55:52 +00:00
|
|
|
sha256 = "096i9x6b4i6x24vc4lsxx8fg2n2pjs2jb6x3bkg3ppa2c60w1jq0";
|
2012-05-29 12:21:33 +00:00
|
|
|
};
|
|
|
|
|
2013-12-28 14:34:08 +00:00
|
|
|
preConfigure = ''sed -i 's/\(SUBDIRS.*\) doc/\1/' Makefile.in''; # fails when installing docs
|
|
|
|
|
2012-05-29 12:21:33 +00:00
|
|
|
configureFlags = "--disable-component";
|
|
|
|
|
2013-12-28 14:34:08 +00:00
|
|
|
# ToDo: optional libgda, python, introspection?
|
2012-05-29 12:21:33 +00:00
|
|
|
buildInputs = [
|
2013-12-28 14:34:08 +00:00
|
|
|
pkgconfig intltool perl perlXMLParser
|
|
|
|
goffice gtk3 makeWrapper
|
2012-05-29 12:21:33 +00:00
|
|
|
];
|
|
|
|
|
2013-12-28 14:34:08 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out"/bin/gnumeric-* \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome_icon_theme}/share"
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
license = "GPLv2+";
|
|
|
|
homepage = http://projects.gnome.org/gnumeric/;
|
2013-12-28 14:49:19 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
2012-05-29 12:21:33 +00:00
|
|
|
};
|
|
|
|
}
|