What’s the most straightforward way to spin up a throwaway shell environment in which a C compiler and all the usual shell utilities are available (~ equivalent to Debian’s build-essential), and the C compiler uses musl libc as its C library?
I don’t need any other compiled-code languages besides C.
By “throwaway shell environment” I mean I’m looking for a “nix-shell” command line, or similar, not stuff to put in a package.nix.
That does seem to work well enough for what I’m trying to do right now. Thanks. I’ll leave the question open for a few days in case someone knows a less cryptic way to do it, or a way that works in more cases.
What system did you test that on? Because pkgsMusl won’t eval outside of Linux. On my Linux boxes however pkgsMusl.mkShell works fine. (Same goes for all the other variants)