xorg.libX11 and xorg.xorgproto both contain some of the same files, but both are often needed when working with X11 libs. Including both of them in language.c.includes causes a collision.
The above configuration gives the following error:
error: builder for '/nix/store/fv8qvjd82wmrm1s0qb6ca3w5d6q9z2ab-devshell-dir.drv' failed with exit code 25;
last 1 log lines:
> error: collision between `/nix/store/2dspcvr8zwwcl35pilbsgqhnid3kfh68-xorgproto-2021.5/include/X11/extensions/XKBgeom.h' and `/nix/store/sgw0sxwx46hqwlcm3d834f10p1qx7c5y-libX11-1.8.1-dev/include/X11/extensions/XKBgeom.h'
For full logs, run 'nix log /nix/store/fv8qvjd82wmrm1s0qb6ca3w5d6q9z2ab-devshell-dir.drv'.
error: 1 dependencies of derivation '/nix/store/2cb7rrqfrx2ry2aw1qi4cx3kbpkbi2sa-devshell-env.drv' failed to build
Describe the bug
xorg.libX11
andxorg.xorgproto
both contain some of the same files, but both are often needed when working with X11 libs. Including both of them inlanguage.c.includes
causes a collision.To Reproduce
Steps to reproduce the behavior:
devshell.toml
file with:Expected behavior
Include files from both packages are on the include path
System information
WSL2 / Debian Bullseye
Additional context
I'm trying to work on a golang project that uses SDL2 (and as such needs the C compiler as well), and SDL2 requires both libX11 and xorgproto.
flake.nix:
devshell.toml:
The above configuration gives the following error: