mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 22:51:21 +00:00
discourse: Fix icu library mismatch in mini_racer
After #525241 ("nodejs: pin icu to newer version"), building discourse assets would fail with a library loading error: LoadError: /nix/store/3sv7vxglmc6zwg68ycl9xpny87mm6fp7-discourse-ruby-env-2026.1.4/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mini_racer-0.19.1/mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi (LoadError) This error apparently occurs when the ICU version used by libv8 does not match the ICU version mini_racer is built with. Thanks to @0xB10C for identifying the problematic commit. Fixes #538128
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
brotli,
|
||||
procps,
|
||||
rsync,
|
||||
icu,
|
||||
icu78,
|
||||
rustPlatform,
|
||||
buildRubyGem,
|
||||
rustc,
|
||||
@@ -183,7 +183,7 @@ let
|
||||
gemset = import ./rubyEnv/gemset.nix;
|
||||
gemConfig = defaultGemConfig // {
|
||||
mini_racer = attrs: {
|
||||
buildInputs = [ icu ];
|
||||
buildInputs = [ icu78 ];
|
||||
dontBuild = false;
|
||||
NIX_LDFLAGS = "-licui18n";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user