build: explain why we publish CA certificates this way

Alternatively, we could bundle the CA certificate path (at compile time)
inside Akvorado binary and it would be pulled automatically. This seems
like a hurdle.
This commit is contained in:
Vincent Bernat
2022-11-03 22:05:12 +01:00
parent 192844bdd6
commit 4514bde29b

View File

@@ -27,6 +27,8 @@
export SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt
export GOFLAGS=-trimpath
'';
# We do not use a wrapper to set SSL_CERT_FILE because, either a
# binary or a shell wrapper, it would pull the libc (~30M).
installPhase = ''
mkdir -p $out/bin $out/share/ca-certificates
cp bin/akvorado $out/bin/.