Re:Libsodium: A modern, portable, easy to use crypto library
by arianvanp on Friday September 15, 2023 @04:04AM
(#37519957)
I use Nix as a package manager for my C projects. It works very well and has out of the box support for most C build systems (make, autotools, cmake, meson)
[ Parent
| on HN ]
Re:Libsodium: A modern, portable, easy to use crypto library
by Alifatisk on Friday September 15, 2023 @06:29AM
(#37520946)
Really? You manage the libraries through nix?
Re:Libsodium: A modern, portable, easy to use crypto library
by arianvanp on Thursday September 21, 2023 @07:29AM
(#37596081)
Yes!
just pop in a:
stdenv.mkDerivation {
pname = "myproject";
version = "0.0.0";
nativeBuildInputs = [ pkg-config ninja meson ];
buildInputs = [ openssl zlib libfido2 ];
}
in a default.nix, type `nix-shell`.
and you'll have meson, ninja, and all your libraries! All ready to go