gnumeric: fix cross build

This commit is contained in:
FliegendeWurst
2025-01-15 20:10:43 +01:00
parent d9e9853753
commit a858b339e2
+15
View File
@@ -2,13 +2,17 @@
lib,
stdenv,
fetchurl,
autoconf,
automake,
pkg-config,
intltool,
libxml2,
perlPackages,
goffice,
gnome,
adwaita-icon-theme,
wrapGAppsHook3,
glib,
gtk3,
bison,
python3Packages,
@@ -30,14 +34,20 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-component" ];
nativeBuildInputs = [
autoconf
automake
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
@@ -53,6 +63,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
postPatch = ''
substituteInPlace configure.ac \
--replace-fail 'GLIB_COMPILE_RESOURCES=' 'GLIB_COMPILE_RESOURCES="glib-compile-resources"#'
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;