diff options
author | Andrea Bedini <andrea@andreabedini.com> | 2023-06-09 17:53:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 11:53:18 +0200 |
commit | 3c78920f7358957dba37a379e9d0b062dd3192e2 (patch) | |
tree | 58e7661604b520ba9964ef811b8249df8b5af5d1 /src/libutil/experimental-features.hh | |
parent | bf7dc3c7dc24f75fa623135750e8f10b8bcd94f9 (diff) |
Parse TOML timestamps (#8120)
Currently `fromTOML` throws an exception when encountering a timestamp
since the Nix language lacks a way to represent them.
This patch changes this beaviour and makes `fromTOML` parse timestamps as
attrsets of the format
{ _type = "timestamp"; value = "1979-05-27T07:32:00Z"; }
This is guarded by an experimental feature flag to leave room for iterating on the representation.
Diffstat (limited to 'src/libutil/experimental-features.hh')
-rw-r--r-- | src/libutil/experimental-features.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/experimental-features.hh b/src/libutil/experimental-features.hh index 409100592..892c6c371 100644 --- a/src/libutil/experimental-features.hh +++ b/src/libutil/experimental-features.hh @@ -30,6 +30,7 @@ enum struct ExperimentalFeature DiscardReferences, DaemonTrustOverride, DynamicDerivations, + ParseTomlTimestamps, }; /** |