reattach-to-user-namespace: support apple silicon

This commit is contained in:
Jason Lau 2021-06-15 11:30:21 -07:00 committed by GitHub
parent 25182e079c
commit 8a2d578017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1qgimh58hcx5f646gj2kpd36ayvrdkw616ad8cb3lcm11kg0ag79";
};
buildFlags = [ "ARCHES=x86_64" ];
buildFlags =
if stdenv.hostPlatform.system == "x86_64-darwin" then [ "ARCHES=x86_64" ]
else if stdenv.hostPlatform.system == "aarch64-darwin" then [ "ARCHES=arm64" ]
else throw "reattach-to-user-namespace isn't being built for ${stdenv.hostPlatform.system} yet.";
installPhase = ''
mkdir -p $out/bin