You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There happen collisions between outputs of derivations.
error: builder for '/nix/store/b26vcwkva5jibrsfgfyy0yr8a26b1xcq-devshell-dir.drv' failed with exit code 25; last 1 log lines: > error: collision between `/nix/store/wnkqs7395ycrhx4igkpk4vkpsq1j2fr7-purs-tidy-0.10.0/package.json' and `/nix/store/d85k0zkqr9d52gkd7nwvy11x562vz4ar-spago-0.93.9/package.json' For full logs, run 'nix log /nix/store/b26vcwkva5jibrsfgfyy0yr8a26b1xcq-devshell-dir.drv'.error: 1 dependencies of derivation '/nix/store/i06ac43b0040qzpa3xf0gdvqqmm05dwy-devshell-env.drv' failed to build
The issue is that both packages have a package.json in their output, and so the merging doesn't like it.
The proper fix would be to not put the package.json in the top of the $out of the package. In general, $out should only contain folders like ./bin ./lib ... so that there are no clashes like that.
The quick fix is to wrap one of the packages with pkgs.lib.lowPrio to instruct buildEnv on which one's package.json should be linked to. Eg:
Describe the bug
There happen collisions between outputs of derivations.
To Reproduce
nix develop github:deemp/gists/ffd2e94d21f1939a4c55d7fa3459bc2c910f4f50?dir=purifixProject#devshell
Expected behavior
purs
,spago
,purs-tidy
binaries are on PATH.System information
x86_64-linux
Additional context
There are other issues mentioning the problem.
language.c.includes
collision when trying to use libX11 and xorgproto #241Possible solution
The text was updated successfully, but these errors were encountered: