···14 OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
15 ARCH =
16 if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name;
17- version = "1.30.0";
000018 hashes = {
19 # Get these from `nix store prefetch-file https://github.com/ldc-developers/ldc/releases/download/v1.19.0/ldc2-1.19.0-osx-x86_64.tar.xz` etc..
20- osx-x86_64 = "sha256-AAWZvxuZC82xvrW6fpYm783TY+H8k3DvqE94ZF1yjmk=";
21 linux-x86_64 = "sha256-V4TUzEfQhFrwiX07dHOgjdAoGkzausCkhnQIQNAU/eE=";
22 linux-aarch64 = "sha256-kTeglub75iv/jWWNPCn15aCGAbmck0RQl6L7bFOUu7Y=";
23- osx-arm64 = "sha256-Nb/owBdIeroB9jLMDvwjo8bvsTC9vFyJPLMTOMsSAd4=";
24 };
25in
26stdenv.mkDerivation {
···14 OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
15 ARCH =
16 if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name;
17+ # Work around macOS Sequoia 15.4 segfault by downgrading the bootstrap compiler - see:
18+ # - https://github.com/NixOS/nixpkgs/issues/398443
19+ # - https://github.com/dlang/dmd/issues/21126#issuecomment-2775948553
20+ # TODO: Remove this when bootstrap can be upgraded to a fixed version (>= 1.41.0-beta2)?
21+ version = if hostPlatform.isDarwin then "1.28.1" else "1.30.0";
22 hashes = {
23 # Get these from `nix store prefetch-file https://github.com/ldc-developers/ldc/releases/download/v1.19.0/ldc2-1.19.0-osx-x86_64.tar.xz` etc..
24+ osx-x86_64 = "sha256-mqQ+hNlDePOGX2mwgEEzHGiOAx3SxfNA6x8+ML3qYmw=";
25 linux-x86_64 = "sha256-V4TUzEfQhFrwiX07dHOgjdAoGkzausCkhnQIQNAU/eE=";
26 linux-aarch64 = "sha256-kTeglub75iv/jWWNPCn15aCGAbmck0RQl6L7bFOUu7Y=";
27+ osx-arm64 = "sha256-m93rGywncBnPEWslcrXuGBnZ+Z/mNgLIaevkL/uBOu0=";
28 };
29in
30stdenv.mkDerivation {