2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, intltool, perlPackages
|
2021-05-20 23:08:51 +00:00
|
|
|
, goffice, gnome, wrapGAppsHook, gtk3, bison, python3Packages
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python3Packages) python pygobject3;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "gnumeric";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.12.52";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 22:18:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "c89zBJoiodgoUGJ1ssk3jsN8X/N7aLsfL0lPDWQAgjs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-component" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config intltool bison itstool wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# ToDo: optional libgda, introspection?
|
|
|
|
buildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
goffice gtk3 gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
python pygobject3
|
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The GNOME Office Spreadsheet";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://projects.gnome.org/gnumeric/";
|
|
|
|
platforms = platforms.unix;
|
2022-04-27 09:35:20 +00:00
|
|
|
broken = with stdenv; isDarwin && isAarch64;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
|
|
|
};
|
|
|
|
}
|