Packages reliant on /etc/mime.types

I was wondering if there’s already an agreed upon solution for packages reliant on /etc/mime.types.

Looking through nixpkgs, I’ve came across the go package’s solution of patching the /etc/mime.types file from mailcap.

I also want to know how to handle this missing /etc/mime.types problem.