Onnxruntime build error

The package ’ onnxruntime will not build correctly on Nixos unstable. First I tried to build my entire config with OBS studio and the background removal plugin, I read the errormessages and then onnxruntime was mentioned. Whan I try to do a

nix shell nixpkgs#onnxruntime

I get:

ook 47s ✦ ❯ nix shell nixpkgs#onnxruntime
error: builder for '/nix/store/rnxm64djw6fd5jcbac4410ydd4pspskz-python3.11-onnx-1.15.0.drv' failed with exit code 1;
       last 10 log lines:
       >   File "/nix/store/7fnhc3nd125lq9vzw6bghsvbnmcc8mc1-python3.11-setuptools-69.0.2/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
       >     super().run_command(command)
       >   File "/nix/store/7fnhc3nd125lq9vzw6bghsvbnmcc8mc1-python3.11-setuptools-69.0.2/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
       >     cmd_obj.run()
       >   File "setup.py", line 243, in run
       >     subprocess.check_call(build_args)
       >   File "/nix/store/asiphbpiy2gmidfm3xbwcikayhs66289-python3-3.11.7/lib/python3.11/subprocess.py", line 413, in check_call
       >     raise CalledProcessError(retcode, cmd)
       > subprocess.CalledProcessError: Command '['/nix/store/wz9wbxbci2gsw1l35a5xiya8xkbc7d5r-python3.11-cmake-3.27.8/bin/cmake', '--build', '.', '--', '-j', '12']' returned non-zero exit status 2.
       > /nix/store/v5irq7wvkr7kih0hhnch5nnv2dcq8c4f-stdenv-linux/setup: line 1557: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/rnxm64djw6fd5jcbac4410ydd4pspskz-python3.11-onnx-1.15.0.drv'.
error: 1 dependencies of derivation '/nix/store/pk3p4wb68b22kja4z8wbaczr2mad3hml-onnxruntime-1.15.1.drv' failed to build
~ took 14s ✦ ❯ 

What could it be?

2 Likes