i try to install steam using nixos. I am running the unstable nixos channel. My smallest reproducer is at the moment to install it in nix-shell. I get the same errors by enabling the steam program section.
exammple:
NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steamcmd
these 7 derivations will be built:
/nix/store/7fscyx5rxs40sykfi1g9n5gvd48nmkkk-steam-run-usr-target.drv
/nix/store/j0h4k7k7hirq40849gd2mlb0fmaj27kf-libidn2-2.3.4.drv
/nix/store/zg16l9b0shcz1jkyangdl0vgrq6snx28-steam-run-usr-multi.drv
/nix/store/rj1bfrbp6ph3df6d09zjsf2wml0nb1pd-steam-run-fhs.drv
/nix/store/99d40cxwpbpnkpmb4byyw7488zcligqd-steam-run-bwrap.drv
/nix/store/k3n68kgl398ry4hryd3fcr011iimq5ns-steam-run.drv
/nix/store/s4b0m5vmlv4f0wkbkp7fqlfvi4l4xpxj-steamcmd-20180104.drv
building '/nix/store/7fscyx5rxs40sykfi1g9n5gvd48nmkkk-steam-run-usr-target.drv'...
building '/nix/store/j0h4k7k7hirq40849gd2mlb0fmaj27kf-libidn2-2.3.4.drv'...
error: builder for '/nix/store/j0h4k7k7hirq40849gd2mlb0fmaj27kf-libidn2-2.3.4.drv' failed to produce output path for output 'bin' at '/nix/store/j0h4k7k7hirq40849gd2mlb0fmaj27kf-libidn2-2.3.4.drv.chroot/nix/store/23fs5gxywhkxilslb0wh6pq79d4xf6l0-libidn2-2.3.4-bin'
error: 1 dependencies of derivation '/nix/store/zg16l9b0shcz1jkyangdl0vgrq6snx28-steam-run-usr-multi.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rj1bfrbp6ph3df6d09zjsf2wml0nb1pd-steam-run-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/99d40cxwpbpnkpmb4byyw7488zcligqd-steam-run-bwrap.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k3n68kgl398ry4hryd3fcr011iimq5ns-steam-run.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s4b0m5vmlv4f0wkbkp7fqlfvi4l4xpxj-steamcmd-20180104.drv' failed to build
I am totally out of clue how to debug there anything. When i try to install libidn2 independently, everything works fine. I just discover, that this uses another nix-store hash, than the one, thas is requested during the steam build. So i not really know how to specifically rebuild the problem with more debug info.
nix-build '<nixpkgs>' -A libidn2
[sudo] password for cguenther:
/nix/store/h9ys90xlcxl721kkc9bjs16845kpyihi-libidn2-2.3.4-bin
Which further information can i provide here, for necessary insights?
I think i got out of this hole yesterday. I believe there is some kind of conflict between boot.binfmt.emulatedSystems and steam versions. I found that disabling all registered extra systems and then REBOOTING (i thought i had done that but i had not) enabled both the steam flatpak and the steam nixos module to work again. My issue was manifesting as lots of issues building steam, running it, etc.