mkDerivation does not care about checkPlugins and checkFunctionDirs so let’s avoid polluting the scope. Also remove installPath argument altogether for the same reason since it is not used at all.