diff options
author | Jason Lau <i@dotkrnl.com> | 2021-06-15 11:30:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 11:30:21 -0700 |
commit | 8a2d5780174f465407f3b800609f141b10ef76fe (patch) | |
tree | 5ab4f56a4505d8c6ef53dcfc97cea00340f9134f /pkgs/os-specific/darwin/reattach-to-user-namespace | |
parent | 25182e079c4fb5903d791e75ac1b5b6c0dc6fb10 (diff) | |
download | nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar.gz nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar.bz2 nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar.lz nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar.xz nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.tar.zst nixpkgs-8a2d5780174f465407f3b800609f141b10ef76fe.zip |
reattach-to-user-namespace: support apple silicon
Diffstat (limited to 'pkgs/os-specific/darwin/reattach-to-user-namespace')
-rw-r--r-- | pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix b/pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix index dedc7578951..b4d26327bdc 100644 --- a/pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix +++ b/pkgs/os-specific/darwin/reattach-to-user-namespace/default.nix @@ -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 |