From f9323d576248d3ba3967eb89645135a407756865 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 8 Jan 2020 14:10:32 +0100 Subject: [PATCH] nix: don't inject invoke/bumpversion in default shell, we use our own py3 compat, and want to have an option to skip it --- shell.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/shell.nix b/shell.nix index 85ded9a5..92e8a958 100644 --- a/shell.nix +++ b/shell.nix @@ -6,6 +6,7 @@ , doCheck ? false , sourcesOverrides ? {} , doDevelopInstall ? true +, doReleaseInstall ? false }: let @@ -69,11 +70,12 @@ in enterprise-ce.override (attrs: { # Add dependencies which are useful for the development environment. buildInputs = attrs.buildInputs ++ - (with ce-pythonPackages; [ - bumpversion - invoke - ipdb - ]); + (with ce-pythonPackages; + [ ipdb ] + ++ pkgs.lib.lists.optionals doReleaseInstall ( + [invoke bumpversion] + ) + ); # place to inject some required libs from develop installs propagatedBuildInputs =