You can refer to `stdenv.lib...` instead of `pkgs.lib...` to make the `pkgs` argument to this function unnecessary.