In this wikipedia page, it says that one can derive the spacetime interval between 2 arbitrary events from the second postulate of special relativity, together with the homogeneity of spacetime and the isotropy of space.
The "second postulate" as numbered in the reference is this the invariance of $c$ stated like this:
As measured in any inertial frame of reference, light is always propagated in empty space with a definite velocity $c$ that is independent of the state of motion of the emitting body. Or: the speed of light in free space has the same value $c$ in all inertial frames of reference.
How exactly is this done?