mercurial: add CA cert to test env for libgit

This seems to be required for the tests to pass on Hydra.

Otherwise, the test suit fails with errors like:

```
feature pygit2 failed:  OpenSSL error: failed to load certificates:
error:00000000:lib(0):func(0):reason(0)
```
This commit is contained in:
pacien 2022-01-06 22:16:22 +01:00
parent e929791228
commit a8ef60565a

View file

@ -11,6 +11,7 @@
, which , which
, sqlite , sqlite
, git , git
, cacert
, gnupg , gnupg
}: }:
@ -70,6 +71,7 @@ let
git git
gnupg gnupg
]; ];
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; # needed for git
checkPhase = '' checkPhase = ''
cat << EOF > tests/blacklists/nix cat << EOF > tests/blacklists/nix
# tests enforcing "/usr/bin/env" shebangs, which are patched for nix # tests enforcing "/usr/bin/env" shebangs, which are patched for nix