Nix package with 32bit java/jdk

I have a cpp lib which still needs to be built as 32bit sometimes as some applications are requiring this. This library requires java to generate parts of the code as part of the build process.

Now java does not seem to support 32bit

       … while calling the 'throw' builtin
         at /home/l33tname/github/nixpkgs/pkgs/development/compilers/temurin-bin/jdk-linux-base.nix:52:44:
           51|     version =
           52|       sourcePerArch.${cpuName}.version or (throw "unsupported CPU ${cpuName}");
             |                                            ^
           53|

       error: unsupported CPU i686

Is there either a way to get a java version which still supports 32bit?
Or is there a way to specify java as build dependency which is just 64bit?
(I looked at the different input options but wasn’t able to make them work: Nixpkgs Reference Manual)