3 ms·
> I sometimes wonder if the Nix stdenv does too much. Yeah, NixOS is a Linux-based OS, and historically most of the system stuff is C/C++. So `stdenv` is just
by dpc_01234 3y ago
> I sometimes wonder if the Nix stdenv does too much.
Yeah, NixOS is a Linux-based OS, and historically most of the system stuff is C/C++. So `stdenv` is just that - an abstraction for "a standard Linux environment with a working C toolchain to build system packages". I also tend to just use `runCommand` when I can, but even when building things like Rust, Python or JS, quite often there's some little plugin/package that needs to be built with a C compiler, and then `stdenv` comes handy.