Just use "with pkgs.lib;".