From 277383a8335767cb1a59bf5ef2cc511b955f0a6b Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Wed, 30 Sep 2026 20:12:15 +0800 Subject: [PATCH] herdr: fix build for linux Assisted-by: pi (openai/gpt-6.1-sol) --- pkgs/by-name/he/herdr/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/he/herdr/package.nix b/pkgs/by-name/he/herdr/package.nix index db8d11a54a03..3b1b43fa4771 100644 --- a/pkgs/by-name/he/herdr/package.nix +++ b/pkgs/by-name/he/herdr/package.nix @@ -43,6 +43,12 @@ rustPlatform.buildRustPackage (finalAttrs: { xcbuild ]; + postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' + substituteInPlace vendor/libghostty-vt/src/build/GhosttyLibVt.zig \ + --replace-fail 'lib.bundle_compiler_rt = true;' 'lib.bundle_compiler_rt = false;' \ + --replace-fail 'lib.bundle_ubsan_rt = true;' 'lib.bundle_ubsan_rt = false;' + ''; + # Upstream binary tests are renamed, added, or changed between releases and # depend on host process details, so Nix-only patches for them are brittle. doCheck = false;