Skip to content

Commit

Permalink
darwin.bootstrap_cmds: use correct arch in "mig"
Browse files Browse the repository at this point in the history
  • Loading branch information
thefloweringash committed Mar 2, 2021
1 parent a40a847 commit 178ad9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, appleDerivation, yacc, flex }:
{ lib, stdenv, appleDerivation, yacc, flex }:

appleDerivation {
nativeBuildInputs = [ yacc flex ];
Expand Down Expand Up @@ -26,7 +26,7 @@ appleDerivation {
cp migcom.1 $out/share/man/man1
substituteInPlace $out/bin/mig \
--replace 'arch=`/usr/bin/arch`' 'arch=i386' \
--replace 'arch=`/usr/bin/arch`' 'arch=${stdenv.targetPlatform.darwinArch}' \
--replace '/usr/bin/' "" \
--replace '/bin/rmdir' "rmdir" \
--replace 'C=''${MIGCC}' "C=cc"
Expand Down

0 comments on commit 178ad9a

Please sign in to comment.