From 8467457283e7a51c641f289abefc8af780ebe654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 28 Sep 2023 11:19:16 +0200 Subject: [PATCH] don't propagate python libraries into a devshell --- pkgs/clan-cli/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/clan-cli/default.nix b/pkgs/clan-cli/default.nix index a6dccf1d0..3567fa2fa 100644 --- a/pkgs/clan-cli/default.nix +++ b/pkgs/clan-cli/default.nix @@ -146,6 +146,11 @@ python3.pkgs.buildPythonApplication { installShellCompletion --fish --name clan.fish \ <(${argcomplete}/bin/register-python-argcomplete --shell fish clan) ''; + # Don't leak python packages into a devshell. + # It can be very confusing if you `nix run` than than load the cli from the devshell instead. + postFixup = '' + rm $out/nix-support/propagated-build-inputs + ''; checkPhase = '' PYTHONPATH= $out/bin/clan --help if grep --include \*.py -Rq "breakpoint()" $out; then