It is possible to fit a straight-six engine into a first-generation Chevy S10, but it will require modifications to the vehicle. The S10 was originally designed to accommodate a V6 engine, so the engine bay will need to be modified to fit the straight-six. This may involve cutting and welding the frame rails and engine mounts, as well as modifying the firewall and transmission tunnel. Additionally, the fuel system, exhaust system, and cooling system will need to be modified or replaced to accommodate the new engine.
It is important to note that this type of modification is not for the faint of heart and requires a high level of mechanical skill and expertise. It is also important to consider the cost and availability of parts, as well as any legal or safety implications associated with modifying the vehicle.