Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
97 lines
1.8 KiB
Nix
97 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
intltool,
|
|
libxml2,
|
|
perlPackages,
|
|
goffice,
|
|
gnome,
|
|
adwaita-icon-theme,
|
|
wrapGAppsHook3,
|
|
glib,
|
|
gtk3,
|
|
bison,
|
|
python3Packages,
|
|
itstool,
|
|
autoreconfHook,
|
|
gtk-doc,
|
|
fetchFromGitLab,
|
|
gettext,
|
|
yelp-tools,
|
|
}:
|
|
|
|
let
|
|
inherit (python3Packages) python pygobject3;
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gnumeric";
|
|
version = "1.12.59";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "gnumeric";
|
|
tag = "GNUMERIC_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
|
|
hash = "sha256-7xCDOqPx3QLDHLoKG46e8te4smSFrLOgCcWkiJXGjDQ=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [ "--disable-component" ];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
gettext
|
|
gtk-doc
|
|
yelp-tools
|
|
pkg-config
|
|
intltool
|
|
bison
|
|
itstool
|
|
glib # glib-compile-resources
|
|
libxml2 # xmllint
|
|
python.pythonOnBuildForHost
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
# ToDo: optional libgda, introspection?
|
|
# TODO: fix Perl plugin when cross-compiling
|
|
buildInputs = [
|
|
goffice
|
|
gtk3
|
|
adwaita-icon-theme
|
|
python
|
|
pygobject3
|
|
]
|
|
++ (with perlPackages; [
|
|
perl
|
|
XMLParser
|
|
]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace-fail 'GLIB_COMPILE_RESOURCES=' 'GLIB_COMPILE_RESOURCES="glib-compile-resources"#'
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "gnumeric";
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "GNOME Office Spreadsheet";
|
|
license = lib.licenses.gpl2Plus;
|
|
homepage = "http://projects.gnome.org/gnumeric/";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.vcunat ];
|
|
};
|
|
})
|