1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/applications/office/gnumeric/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, perl, perlXMLParser
, goffice, makeWrapper, gtk3, gnome_icon_theme
}:
stdenv.mkDerivation rec {
2014-03-13 21:55:52 +00:00
name = "gnumeric-1.12.12";
src = fetchurl {
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
2014-03-13 21:55:52 +00:00
sha256 = "096i9x6b4i6x24vc4lsxx8fg2n2pjs2jb6x3bkg3ppa2c60w1jq0";
};
preConfigure = ''sed -i 's/\(SUBDIRS.*\) doc/\1/' Makefile.in''; # fails when installing docs
configureFlags = "--disable-component";
# ToDo: optional libgda, python, introspection?
buildInputs = [
pkgconfig intltool perl perlXMLParser
goffice gtk3 makeWrapper
];
2014-04-17 10:44:11 +01:00
preFixup = ''
for f in "$out"/bin/gnumeric-*; do
wrapProgram $f \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
done
rm $out/share/icons/hicolor/icon-theme.cache
'';
2013-12-28 14:49:19 +00:00
meta = with stdenv.lib; {
description = "The GNOME Office Spreadsheet";
license = stdenv.lib.licenses.gpl2Plus;
homepage = http://projects.gnome.org/gnumeric/;
2013-12-28 14:49:19 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.vcunat ];
};
}