From f9e97cc9beb5fc1ec80684705979f5fb9d612eea Mon Sep 17 00:00:00 2001 From: supinie <86788874+supinie@users.noreply.github.com> Date: Tue, 6 May 2025 10:20:29 +0100 Subject: [PATCH] servo: aarch64 use system allocator specifies component for feature --- pkgs/by-name/se/servo/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/se/servo/package.nix b/pkgs/by-name/se/servo/package.nix index a22a0bf5ae54..667369b201d3 100644 --- a/pkgs/by-name/se/servo/package.nix +++ b/pkgs/by-name/se/servo/package.nix @@ -132,6 +132,11 @@ rustPlatform.buildRustPackage { apple-sdk_14 ]; + # Builds with additional features for aarch64, see https://github.com/servo/servo/issues/36819 + buildFeatures = lib.optionals stdenv.hostPlatform.isAarch64 [ + "servo_allocator/use-system-allocator" + ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"; # copy resources into `$out` to be used during runtime