1{ lib, stdenv, fetchurl, pkg-config, intltool, perlPackages
2, goffice, gnome, wrapGAppsHook, gtk3, bison, python3Packages
3, itstool
4}:
5
6let
7 inherit (python3Packages) python pygobject3;
8in stdenv.mkDerivation rec {
9 pname = "gnumeric";
10 version = "1.12.55";
11
12 src = fetchurl {
13 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
14 sha256 = "xpoJzRkLYirMpHa7w9TAPWjXzPWbumG/A2zmCIX5+2U=";
15 };
16
17 configureFlags = [ "--disable-component" ];
18
19 nativeBuildInputs = [ pkg-config intltool bison itstool wrapGAppsHook ];
20
21 # ToDo: optional libgda, introspection?
22 buildInputs = [
23 goffice gtk3 gnome.adwaita-icon-theme
24 python pygobject3
25 ] ++ (with perlPackages; [ perl XMLParser ]);
26
27 enableParallelBuilding = true;
28
29 passthru = {
30 updateScript = gnome.updateScript {
31 packageName = pname;
32 versionPolicy = "odd-unstable";
33 };
34 };
35
36 meta = with lib; {
37 description = "The GNOME Office Spreadsheet";
38 license = lib.licenses.gpl2Plus;
39 homepage = "http://projects.gnome.org/gnumeric/";
40 platforms = platforms.unix;
41 broken = with stdenv; isDarwin && isAarch64;
42 maintainers = [ maintainers.vcunat ];
43 };
44}