clan-cli: symlink cli into an otherwise empty package

This avoids propagating unneeded python libraries
This commit is contained in:
Jörg Thalheim
2023-09-28 12:05:19 +02:00
parent 8467457283
commit 0f1b7cf916
4 changed files with 13 additions and 12 deletions

View File

@@ -146,11 +146,6 @@ 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