@@ -3,8 +3,8 @@
33
44let
55 inherit (stdenv) hostPlatform;
6− OS = if stdenv.hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
7− ARCH = toString hostPlatform.parsed.cpu.name;
6+ OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
7+ ARCH = if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name;
88in stdenv.mkDerivation {
99 pname = "ldc-bootstrap";
1010 inherit version;
@@ -37,6 +37,6 @@ in stdenv.mkDerivation {
3737 # from https://github.com/ldc-developers/ldc/blob/master/LICENSE
3838 license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ];
3939 maintainers = with maintainers; [ ThomasMader lionello ];
40− platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ];
40+ platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
4141 };
4242}