The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
jdk12_headless disappeared in d00559ebb8, and just using the default in the VM test should be fine IMHO.
d00559ebb8
Co-authored-by: edef <edef@edef.eu> Co-authored-by: Florian Klink <flokli@flokli.de>