clan/module: explain throw

This commit is contained in:
Johannes Kirschbauer
2025-10-27 17:24:45 +01:00
parent 8ac8264997
commit 4239f4d27f

View File

@@ -167,6 +167,9 @@ in
{ ... }@args:
let
_class =
# _class was added in https://github.com/NixOS/nixpkgs/pull/395141
# Clan relies on it to determine which modules to load
# people need to use at least that version of nixpkgs
args._class or (throw ''
Your version of nixpkgs is incompatible with the latest clan.
Please update nixpkgs input to the latest nixos-unstable or nixpkgs-unstable.