From 5fc29fc1bb21443842fa5397a03c409c678db0b0 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Wed, 4 Sep 2024 18:10:49 +0400 Subject: [PATCH] libgrapheme: fix cross compilation --- pkgs/by-name/li/libgrapheme/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/li/libgrapheme/package.nix b/pkgs/by-name/li/libgrapheme/package.nix index 1aaed5f1a604..44883d17d0c6 100644 --- a/pkgs/by-name/li/libgrapheme/package.nix +++ b/pkgs/by-name/li/libgrapheme/package.nix @@ -9,6 +9,11 @@ stdenv.mkDerivation rec { hash = "sha256-pou93edr1Vul1kEWzl5CoT3wRcgcCFLemrYIlqoUMSU="; }; + postPatch = '' + substituteInPlace configure \ + --replace-fail "uname" "echo ${stdenv.hostPlatform.uname.system}" + ''; + depsBuildBuild = [ buildPackages.stdenv.cc ]; makeFlags = [ "AR:=$(AR)" "CC:=$(CC)" "RANLIB:=$(RANLIB)" "BUILD_CC=$(CC_FOR_BUILD)" ];