From e3aea0cfbad4a51fb1436bfb73d1ac5eb730305c Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Tue, 13 Dec 2022 13:55:42 +0100 Subject: pythonPackages.bootstrapped-pip: do not assume pip has a postPatch field This was breaking poetry2nix which passed `pip` without any `postPatch` field, presumbly from a `poetry.lock`-induced dependency tree. --- pkgs/development/python-modules/bootstrapped-pip/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/bootstrapped-pip/default.nix b/pkgs/development/python-modules/bootstrapped-pip/default.nix index 812ff1a64cb..d2cefade9c4 100644 --- a/pkgs/development/python-modules/bootstrapped-pip/default.nix +++ b/pkgs/development/python-modules/bootstrapped-pip/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { postPatch = '' mkdir -p $out/bin - '' + pip.postPatch; + '' + (pip.postPatch or ""); # `pip` does not necessarily have a `postPatch` field. nativeBuildInputs = [ makeWrapper unzip ]; buildInputs = [ python ]; -- cgit 1.4.1