diff options
author | piegames <git@piegames.de> | 2024-08-18 16:02:23 +0200 |
---|---|---|
committer | piegames <git@piegames.de> | 2024-08-21 06:55:52 +0000 |
commit | 7210ed1b87410a0df597c0c4efe642bf82cc2b06 (patch) | |
tree | 85be2a9cc889c74da6a16dd8ca64713f86ce8691 /src/libutil | |
parent | ac6974777efdaa85715cf7838fe878665061f86c (diff) |
libexpr: Soft-deprecate __overrides
Change-Id: I787e69e1dad6edc5ccdb747b74a9ccd6e8e13bb3
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/deprecated-features.cc | 9 | ||||
-rw-r--r-- | src/libutil/deprecated-features.hh | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/deprecated-features.cc b/src/libutil/deprecated-features.cc index 877d69da0..de4efd93b 100644 --- a/src/libutil/deprecated-features.cc +++ b/src/libutil/deprecated-features.cc @@ -28,6 +28,15 @@ constexpr size_t numDepFeatures = 1 + static_cast<size_t>(Dep::UrlLiterals); constexpr std::array<DeprecatedFeatureDetails, numDepFeatures> depFeatureDetails = {{ { + .tag = Dep::RecSetOverrides, + .name = "rec-set-overrides", + .description = R"( + Allow `__overrides` in recursive attribute sets. + + Use fix point functions (e.g. `lib.fix` in Nixpkgs) instead. + )", + }, + { .tag = Dep::UrlLiterals, .name = "url-literals", .description = R"( diff --git a/src/libutil/deprecated-features.hh b/src/libutil/deprecated-features.hh index 3776e6c29..d4d8a57a9 100644 --- a/src/libutil/deprecated-features.hh +++ b/src/libutil/deprecated-features.hh @@ -18,6 +18,7 @@ namespace nix { */ enum struct DeprecatedFeature { + RecSetOverrides, UrlLiterals, }; |