about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorArtturin2024-09-12 00:52:44 +0300
committerGitHub2024-09-12 00:52:44 +0300
commited0fe13cc637546cad8c3ee903a23459b59f5080 (patch)
treef7b677dd543fd0fc207886660f5d3cc3c6e7c8af /pkgs/by-name
parent5d60e7bd26404f6d88ac35d94448b546b8fe80a7 (diff)
parent5fc29fc1bb21443842fa5397a03c409c678db0b0 (diff)
libgrapheme: fix cross compilation (#339568)
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/li/libgrapheme/package.nix5
1 files changed, 5 insertions, 0 deletions
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)" ];