nixpkgs: lib.isFunction replaces builtins.isFunction in check for overlayType (#6338)

Replaces the check attribute on overlayType with lib.isFunction so it matches the nixpkgs overlayType.
This lets functions that were made by lib.setFunctionArgs to be used as overlays just like the nixpkgs overlayType.
This commit is contained in:
cupiditas 2025-01-20 01:08:57 +10:00 committed by GitHub
parent 97d7946b5e
commit f8ef4541bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ let
overlayType = mkOptionType {
name = "nixpkgs-overlay";
description = "nixpkgs overlay";
check = builtins.isFunction;
check = lib.isFunction;
merge = lib.mergeOneOption;
};