Skip to content

Commit

Permalink
nixos/tests/acme: Use overridePythonAttrs
Browse files Browse the repository at this point in the history
Quoting from @FRidh:

  Note overridePythonAttrs exists since 17.09. It overrides the call to
  buildPythonPackage.

While it's not strictly necessary to do this, because postPatch ends up
in drvAttrs anyway, it's probably better to use overridePythonAttrs so
we don't run into problems when the underlying implementation of
buildPythonPackage changes.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
  • Loading branch information
aszlig committed Sep 14, 2017
1 parent d1260ea commit b5fbb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/tests/acme.nix
Expand Up @@ -14,8 +14,8 @@ let

pythonPackages = (super.python.override {
packageOverrides = lib.const (pysuper: {
certifi = pysuper.certifi.overrideDerivation (drv: {
postPatch = (drv.postPatch or "") + ''
certifi = pysuper.certifi.overridePythonAttrs (attrs: {
postPatch = (attrs.postPatch or "") + ''
cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \
> certifi/cacert.pem
'';
Expand Down

0 comments on commit b5fbb4f

Please sign in to comment.