From 19c3fb47f1fb4203b4c59d85f18964619fd8709b Mon Sep 17 00:00:00 2001 From: Mika Tammi Date: Tue, 28 Feb 2023 22:17:30 +0200 Subject: [PATCH] libgbinder: fix cross-compilation Signed-off-by: Mika Tammi --- pkgs/development/libraries/libgbinder/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/libgbinder/default.nix b/pkgs/development/libraries/libgbinder/default.nix index 69166ab33feb..054dc0847051 100644 --- a/pkgs/development/libraries/libgbinder/default.nix +++ b/pkgs/development/libraries/libgbinder/default.nix @@ -22,6 +22,13 @@ stdenv.mkDerivation rec { libglibutil ]; + postPatch = '' + # Fix pkg-config and ranlib names for cross-compilation + substituteInPlace Makefile \ + --replace "pkg-config" "$PKG_CONFIG" \ + --replace "ranlib" "$RANLIB" + ''; + makeFlags = [ "LIBDIR=$(out)/lib" "INSTALL_INCLUDE_DIR=$(dev)/include/gbinder"