summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2022-12-13 13:55:42 +0100
committerRaito Bezarius <masterancpp@gmail.com>2022-12-13 17:02:45 +0100
commite3aea0cfbad4a51fb1436bfb73d1ac5eb730305c (patch)
treec1919d828afc16d03fd99ec43a4adc0120aa6ee1
parentMerge pull request #205372 from anthonyroussel/awscli2 (diff)
downloadnixpkgs-origin/fix-bootstrapped-pip-post-patch.tar.gz
pythonPackages.bootstrapped-pip: do not assume pip has a postPatch fieldorigin/fix-bootstrapped-pip-post-patch
This was breaking poetry2nix which passed `pip` without any `postPatch` field, presumbly from a `poetry.lock`-induced dependency tree.
-rw-r--r--pkgs/development/python-modules/bootstrapped-pip/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/bootstrapped-pip/default.nix b/pkgs/development/python-modules/bootstrapped-pip/default.nix
index 812ff1a64cb6..d2cefade9c44 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 ];