diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-09-13 23:06:39 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-09-13 23:16:43 +0200 |
commit | 01fffd94e5848e55fab88cd85a6ac958e1a309ff (patch) | |
tree | 3adea2d3ae3b94153a346114397c4cdea28730b0 /nixos/tests/acme.nix | |
parent | bda38317eb3ad36be74ad08013afeaf55fe9066f (diff) |
nixos/tests/acme: Patch certifi with cacert
Since 67651d80bc8baaf09ab91fec8ea423e09107ed8f the requests package now
depends on certifi, which in turn provides the CA root certificates that
we need to replace.
It might also be a good idea to actually patch certifi with our version
of cacert by default so that if we want to override and/or add something
we only need to do it once.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @fpletz, @k0ral, @FRidh
Diffstat (limited to 'nixos/tests/acme.nix')
-rw-r--r-- | nixos/tests/acme.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index a48f4d75ae3e..f44524a1d6a8 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -14,10 +14,10 @@ let pythonPackages = (super.python.override { packageOverrides = lib.const (pysuper: { - requests = pysuper.requests.overrideDerivation (drv: { + certifi = pysuper.certifi.overrideDerivation (drv: { postPatch = (drv.postPatch or "") + '' cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \ - > requests/cacert.pem + > certifi/cacert.pem ''; }); }); |