How to use stdenv in nur

I’m trying to add adoptopenjdk-bin to moaxcp/nur so I can add other versions for development. In all-packages.nix stdenv is used to determine if linux or darwin is used. If I want to do something similar in nur how do I get stdenv?

In your top-level default.nix, you can just use pkgs.stdenv. stdenv is just another attribute in the nixpkgs attribute set.

Thanks for the help!