Replace builtins.warn with lib.warn to support Nix < 2.23 (Fix #27)

This commit is contained in:
Lan Tian 2026-01-27 00:16:33 -08:00
parent 5a69e7afa1
commit 0cce43fce4
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -80,7 +80,7 @@
flake = { flake = {
overlay = self.overlays.pinned; overlay = self.overlays.pinned;
overlays.default = overlays.default =
builtins.warn lib.warn
"\"nix-cachyos-kernel.overlays.default\" may cause kernel/patch version mismatch and build failure. Please use \"nix-cachyos-kernel.overlays.pinned\" instead." "\"nix-cachyos-kernel.overlays.default\" may cause kernel/patch version mismatch and build failure. Please use \"nix-cachyos-kernel.overlays.pinned\" instead."
( (
final: prev: { final: prev: {