nim: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-10-24 01:26:54 +02:00 committed by ehmry
parent 1e684b371c
commit afd4752a38

View file

@ -109,6 +109,9 @@ in {
buildPhase = ''
runHook preBuild
local HOME=$TMPDIR
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
sed -i "s/aarch64/arm64/g" makefile
'' + ''
make -j$NIX_BUILD_CORES
./bin/nim c --parallelBuild:$NIX_BUILD_CORES koch
./koch boot $kochArgs --parallelBuild:$NIX_BUILD_CORES