From 51564ebe4ee528696efab2994d270796536ece82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 28 Sep 2026 18:06:18 +0200 Subject: [PATCH] devenv: link libghostty-vt dynamically The static libghostty-vt archive fails to link into devenv on staging-next. Mold reports undefined symbols from compiler_rt.o, while ld.bfd rejects overlapping FDEs. Enable the link-dynamic feature so Cargo uses the packaged shared library. Assisted-by: OpenAI Codex (GPT-6) --- pkgs/by-name/de/devenv/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/de/devenv/package.nix b/pkgs/by-name/de/devenv/package.nix index 49da57e80666..8774af81d4fc 100644 --- a/pkgs/by-name/de/devenv/package.nix +++ b/pkgs/by-name/de/devenv/package.nix @@ -60,6 +60,11 @@ buildRustPackage { cargoHash = "sha256-ed2k0D5tp7tlvpqXdxr4uGJozI2gvW1Dvz1SSJDR4NI="; + postPatch = '' + substituteInPlace Cargo.toml \ + --replace-fail '"pkg-config",' '"pkg-config", "link-dynamic",' + ''; + env = { RUSTFLAGS = "--cfg tracing_unstable"; LIBSQLITE3_SYS_USE_PKG_CONFIG = "1";