From b5fbb4f3622bc6edabe59402aeb9cd4a40cf08f3 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 14 Sep 2017 23:18:52 +0200 Subject: nixos/tests/acme: Use overridePythonAttrs 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 --- nixos/tests/acme.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/tests/acme.nix') diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index f44524a1d6a8..d7452744e17b 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -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 ''; -- cgit v1.2.3