I have been trying to get statically linked versions of a few bioinformatics tools using Nix and musl.
One tool that is giving me trouble is
megahit, which seems to be due to its use of openmp. It compiles and links fine and you can run it:
nix-shell '<nixpkgs>' -p pkgsCross.musl64.pkgsStatic.megahit
(This works if your version of
nixpkgs is recent enough to include PR171469)
However, it promptly crashes once it hits certain regions of the code that use openmp. A little googling seems to indicate that this is not recommended and I should not even try it, but there is not a lot of information and many of it is from >5 years ago.