From 7210ed1b87410a0df597c0c4efe642bf82cc2b06 Mon Sep 17 00:00:00 2001 From: piegames Date: Sun, 18 Aug 2024 16:02:23 +0200 Subject: libexpr: Soft-deprecate __overrides Change-Id: I787e69e1dad6edc5ccdb747b74a9ccd6e8e13bb3 --- src/libutil/deprecated-features.cc | 9 +++++++++ src/libutil/deprecated-features.hh | 1 + 2 files changed, 10 insertions(+) (limited to 'src/libutil') 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 @@ -27,6 +27,15 @@ struct DeprecatedFeatureDetails constexpr size_t numDepFeatures = 1 + static_cast(Dep::UrlLiterals); constexpr std::array 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", 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, }; -- cgit v1.2.3