From 1e14654d95600181e3e08fee681a42e37fd29d68 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Nov 2023 03:36:36 +0000 Subject: [PATCH] libpanel: fix cross compilation --- overlays/cross.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/overlays/cross.nix b/overlays/cross.nix index a236267dd..15427f2d2 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -1075,6 +1075,23 @@ in { # ''; # }); + # libpanel = mvToNativeInputs [ final.glib ] prev.libpanel; + libpanel = prev.libpanel.overrideAttrs (upstream: { + doCheck = false; + # depsBuildBuild = (upstream.depsBuildBuild or []) ++ [ + # # fixes "Build-time dependency gi-docgen found: NO (tried pkgconfig and cmake)" + # final.pkg-config + # ]; + nativeBuildInputs = upstream.nativeBuildInputs ++ [ + (lib.getBin final.gtk4) # fixes "ERROR: Program 'gtk-update-icon-cache' not found or not executable" + ]; + # it can't figure out where gi-docgen lives + mesonFlags = (upstream.mesonFlags or []) ++ [ + "-Ddocs=disabled" + ]; + outputs = lib.remove "devdoc" upstream.outputs; + }); + # libsForQt5 = prev.libsForQt5.overrideScope' (self: super: { # qgpgme = super.qgpgme.overrideAttrs (orig: { # # fix so it can find the MOC compiler