is there some way to specify dependencies in C? Like requirements.txt in Python, where you put libraries names and versions and the user has to run a single command to install them (and without requiring root privileges)?
I'd describe this as "(language-specific) package management".
"Requiring root privileges" is more/less equivalent to "packages get installed in a system-wide location".
There are some C or C++ specific package managers.. but, essentially what's missing is the ecosystem/culture for providing a packages for those. -- e.g. With the Rust, packages use Cargo.
Is this nix/tvix/guix an equivalent of pip?
Nix and guix are system package managers.
Since they're powerful tools, one popular use case is for providing dependencies for C projects.
Nix practically requires root for its installation. (i.e. installing it without root may be possible, but I'd think it's impractical). Although once installed, it can provide packages without needing root.
Comments
I'd describe this as "(language-specific) package management".
"Requiring root privileges" is more/less equivalent to "packages get installed in a system-wide location".
There are some C or C++ specific package managers.. but, essentially what's missing is the ecosystem/culture for providing a packages for those. -- e.g. With the Rust, packages use Cargo.
Nix and guix are system package managers.
Since they're powerful tools, one popular use case is for providing dependencies for C projects.
Nix practically requires root for its installation. (i.e. installing it without root may be possible, but I'd think it's impractical). Although once installed, it can provide packages without needing root.