From 7f13c482e5bd60038ae7904c389e29cddb0366f9 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 26 Jul 2023 08:51:51 +0000 Subject: [PATCH] cross compilation: support clapper --- overlays/cross.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/overlays/cross.nix b/overlays/cross.nix index 3cae26c4..094f7c12 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -210,6 +210,14 @@ in { # ]; # }); + clapper = prev.clapper.overrideAttrs (upstream: { + # use the host gjs (meson's find_program expects it to be executable) + postPatch = (upstream.postPatch or "") + '' + substituteInPlace bin/meson.build \ + --replace "find_program('gjs').path()" "'${final.gjs}/bin/gjs'" + ''; + }); + # colord = prev.colord.override { # # doesn't fix: "ld: error adding symbols: file in wrong format" # inherit (emulated) stdenv;