From 8dd643ceeb5a2317469e8770663a5e56e823188d Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 18 May 2024 11:18:36 +0200 Subject: [PATCH] Plugin dir attribute can also be a path. --- pkgs/lazyUtils.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/lazyUtils.nix b/pkgs/lazyUtils.nix index 5e3a1dd..56cba90 100644 --- a/pkgs/lazyUtils.nix +++ b/pkgs/lazyUtils.nix @@ -30,7 +30,11 @@ let baseNameOf plugin.short else if (plugin ? dir && plugin.dir != null) then ( - assert ((builtins.isString plugin.dir) || (lib.isDerivation plugin.dir)); + assert builtins.any (isType: isType plugin.dir) [ + lib.isDerivation + builtins.isString + builtins.isPath + ]; if (lib.isDerivation plugin.dir) then plugin.dir.pname else (baseNameOf plugin.dir) ) else