const install = @compileError("deprecated; use std.Build.installArtifact");

This function would install in the context of the package that created the artifact, which is undesirable when installing an artifact provided by a dependency package.