diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-10-24 01:26:54 +0200 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2022-10-23 20:43:41 -0500 |
commit | afd4752a3812a30f21adcc909484dd677e53b849 (patch) | |
tree | a3ff138fd184dbf333f3c3ca0d83eb9ea2d68cac /pkgs | |
parent | 1e684b371cf05300bc2b432f958f285855bac8fb (diff) |
nim: fix build on aarch64-darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/nim/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix index 4fe8db4d2977d..7673bb2279bed 100644 --- a/pkgs/development/compilers/nim/default.nix +++ b/pkgs/development/compilers/nim/default.nix @@ -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 |