$ nix-build ./try-conda.nix
[...]
The Package '-libgcc-mutex' (build: ('conda_forge', 'main')) is not available from any of the selected providers ['conda/conda-forge', 'conda/main']
for the selected python version
[...]
Looking at https://github.com/DavHau/conda-channels I see _libgcc_mutex in there (note the underscore), which makes me think that mach-nix is missing a name.replace('_', '-') somewhere.
There are already several of those substitutions in the codebase, which explains why it displays the package in the error message with dashes instead of underscore.
This results in failure to create environments that pull in e.g.
_libgcc_mutex
, like thezip
ormlir
package does:Looking at https://github.com/DavHau/conda-channels I see
_libgcc_mutex
in there (note the underscore), which makes me think that mach-nix is missing aname.replace('_', '-')
somewhere.There are already several of those substitutions in the codebase, which explains why it displays the package in the error message with dashes instead of underscore.