mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
darwin.bootstrap_cmds: use correct arch in "mig"
This commit is contained in:
parent
d39fafe409
commit
e6be0f45ef
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, appleDerivation, yacc, flex }:
|
||||
{ lib, stdenv, appleDerivation, yacc, flex }:
|
||||
|
||||
appleDerivation {
|
||||
nativeBuildInputs = [ yacc flex ];
|
||||
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue