From d39a09d05dd4649ea8bf8520296aeef0740276df Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 21 Dec 2024 13:43:59 +0000 Subject: [PATCH] flake: warn when `lib..helpers` is used --- flake-modules/lib.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake-modules/lib.nix b/flake-modules/lib.nix index 8fce9a81..42f83191 100644 --- a/flake-modules/lib.nix +++ b/flake-modules/lib.nix @@ -21,13 +21,13 @@ } // lib.genAttrs config.systems ( lib.flip withSystem ( - { pkgs, ... }: + { pkgs, system, ... }: { # NOTE: this is the publicly documented flake output we've had for a while check = pkgs.callPackage ../lib/tests.nix { inherit self; }; # NOTE: no longer needs to be per-system - helpers = self.lib.nixvim; + helpers = lib.warn "nixvim: `.lib.${system}.helpers` has been moved to `.lib.nixvim` and no longer depends on a specific system" self.lib.nixvim; } ) );