Hard-sphere fluids with chemical self-potentials