From 2bc87434703f9f6f2053397a36fe4b6c018ce0a5 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 15 Feb 2021 16:37:08 +0100 Subject: [PATCH] overrides: Make more overrides safe against missing attrs --- overrides.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/overrides.nix b/overrides.nix index ef39e24..b714ff0 100644 --- a/overrides.nix +++ b/overrides.nix @@ -82,7 +82,7 @@ self: super: ); celery = super.celery.overridePythonAttrs (old: { - propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.setuptools ]; + propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ]; }); cssselect2 = super.cssselect2.overridePythonAttrs ( @@ -379,8 +379,8 @@ self: super: ); jsonslicer = super.jsonslicer.overridePythonAttrs (old: { - nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.pkgconfig ]; - buildInputs = old.buildInputs ++ [ pkgs.yajl ]; + nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkgconfig ]; + buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.yajl ]; }); jupyter = super.jupyter.overridePythonAttrs (