[Nix-dev] Curl certs
Michael Raskin
7c6f434c at mail.ru
Sun Nov 11 22:47:54 CET 2012
>I'm trying to create a package that, as part of its make, downloads some
>stuff through curl. Most work but one in particular is failing due to
>certificates (see below). This works if I do it on the command line. I
>tried adding 'cacert' to my buildInputs and parameters, but that didn't
>seem to work. What is the correct solution? Still quite new to Nix so
>apologies if this is a common question, I didn't find anything in my
>google searches.
This will not work in chroot build.
The usual way to deal is to download with your correct certificate
bundle, run nix-prefetch-url on the resulting file, create fetchurl
expression by known hash and url so it can ignore the certificate
check.
More information about the nix-dev
mailing list