Skip to content

Commit

Permalink
mate.marco: fix cross build (#372778)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Jan 13, 2025
2 parents d9f2cb4 + 3e3bd99 commit d076e3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/desktops/mate/marco/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ stdenv.mkDerivation rec {
pkg-config
gettext
itstool
libxml2 # xmllint
wrapGAppsHook3
];

buildInputs = [
libxml2
libcanberra-gtk3
libgtop
libXdamage
Expand All @@ -53,10 +53,11 @@ stdenv.mkDerivation rec {

postPatch = ''
substituteInPlace src/core/util.c \
--replace-fail 'argvl[i++] = "zenity"' 'argvl[i++] = "${zenity}/bin/zenity"'
--replace-fail 'argvl[i++] = "zenity"' 'argvl[i++] = "${lib.getExe zenity}"'
'';

env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
env.ZENITY = lib.getExe zenity;

enableParallelBuilding = true;

Expand Down

0 comments on commit d076e3a

Please sign in to comment.