3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/gnumeric/default.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, perlPackages
, goffice, gnome3, wrapGAppsHook, gtk3, bison, pythonPackages
, itstool, autoreconfHook
}:
let
inherit (pythonPackages) python pygobject3;
in stdenv.mkDerivation rec {
pname = "gnumeric";
version = "1.12.45"; # TODO next release: remove gamma patch and autoreconfHook
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0c8dl1kvnj3g32qy3s92qpqpqfy0in59cx005gjvvzsflahav61h";
};
patches = stdenv.lib.optional stdenv.isDarwin
# https://gitlab.gnome.org/GNOME/gnumeric/issues/402
(fetchurl {
name = "math-gamma.patch";
url = "https://gitlab.gnome.org/GNOME/gnumeric/uploads/cf8d162bc719de92e97d01cb0ba5b637/ppp";
sha256 = "17wiigs06qc86a1nghwcg3pcnpa28123jblgsxpy3j7drardgnlp";
});
2018-07-25 22:44:21 +01:00
configureFlags = [ "--disable-component" ];
nativeBuildInputs = [ pkgconfig intltool bison itstool wrapGAppsHook ]
++ stdenv.lib.optional stdenv.isDarwin autoreconfHook;
# ToDo: optional libgda, introspection?
buildInputs = [
2019-02-13 21:47:50 +00:00
goffice gtk3 gnome3.adwaita-icon-theme
python pygobject3
] ++ (with perlPackages; [ perl XMLParser ]);
enableParallelBuilding = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
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/;
2017-05-04 20:42:28 +01:00
platforms = platforms.unix;
2013-12-28 14:49:19 +00:00
maintainers = [ maintainers.vcunat ];
};
}