treefmt / nix fmt (pull_request) Successful in 3s
build_systems / build-portal-1 (pull_request) Successful in 28s
build_systems / build-brain (pull_request) Successful in 49s
build_systems / build-bob (pull_request) Successful in 49s
build_systems / build-jeeves (pull_request) Canceled after 37m21s
build_systems / build-rhapsody-in-green (pull_request) Canceled after 37m27s
test ebook search / test-ebook-search (pull_request) Successful in 58m23s
pytest / pytest (pull_request) Canceled after 1h2m56s
21 lines
914 B
Nix
21 lines
914 B
Nix
# Compatibility fixes for packages rebuilt with x86-64-v3.
|
|
#
|
|
# The v3 baseline enables instructions that expose source assumptions hidden
|
|
# by the generic x86-64 build. Keep compile fixes here, separate from test
|
|
# exclusions, until upstream or nixpkgs incorporates them.
|
|
_final: prev:
|
|
prev.lib.optionalAttrs ((prev.stdenv.hostPlatform.gcc.arch or null) == "x86-64-v3") {
|
|
deno =
|
|
let
|
|
librusty_v8 = prev.deno.passthru.librusty_v8.overrideAttrs (old: {
|
|
# Clang prohibits including its internal BMI2 header directly. The
|
|
# public umbrella supplies the same intrinsics with the required setup.
|
|
postPatch = (old.postPatch or "") + ''
|
|
substituteInPlace third_party/abseil-cpp/absl/container/internal/raw_hash_set.h \
|
|
--replace-fail "#include <bmi2intrin.h>" "#include <immintrin.h>"
|
|
'';
|
|
});
|
|
in
|
|
prev.deno.override { inherit librusty_v8; };
|
|
}
|