diff --git a/default.nix b/default.nix index 790a128..9ad875b 100644 --- a/default.nix +++ b/default.nix @@ -64,7 +64,10 @@ rec { inherit platform arch targets; }; - nativeBuildInputs = [ which cmake autoPatchelfHook ]; + nativeBuildInputs = + [ which cmake ] + ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook + ; buildInputs = [ stdenv.cc.cc python3 ]; @@ -123,7 +126,10 @@ rec { src = fetchSDKFile "hosttools_${platform}-${arch}.tar.xz"; - nativeBuildInputs = [ which autoPatchelfHook ]; + nativeBuildInputs = + [ which ] + ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook + ; buildInputs = [ python3 ];