Mix is not available in production on purpose. It is a build tool and not meant to give you information during runtime of your project.
If you really have to, you can include :mix
in :extra_dependencies
, but it will probably not work as you expect when you are in a distillery release, so I think it is best to find another way to implement the feature you need not using or relying on mix.