safeReadDir: conver path to string for reliability

This commit is contained in:
Pacman99 2021-04-27 09:30:28 -07:00
parent 466304c8cd
commit 7f3116c1cc

View file

@ -41,5 +41,6 @@ rec {
in
lib.filterAttrs filter packages;
safeReadDir = path: lib.optionalAttrs (builtins.pathExists path) (builtins.readDir path);
safeReadDir = path:
lib.optionalAttrs (builtins.pathExists (toString path)) (builtins.readDir (toString path));
}