def read_nix_prop(prop):
    """Returns a nox property value across different nix versions.

    :param prop: the nix Property.
    :return: The value stored in the property.
    """
    try:
        return prop.values[0].value
    except AttributeError:
        return prop.values[0]