1: { dummyWithEnv, lib }: 2: 3: with builtins; 4: with lib; 5: x: 6: typeOf x == "path" || (typeOf x == "string" && hasPrefix "/" x)