Hydrodynamics without boost-invariance from kinetic theory: from perfect fluids to active flocks