Skip to content

Commit

Permalink
don't propagated python when included in a devshell
Browse files Browse the repository at this point in the history
fixes #27
  • Loading branch information
Mic92 authored and mergify[bot] committed Oct 6, 2023
1 parent 9ebfd44 commit 79908fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ python311.pkgs.buildPythonApplication {
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${path})
'';
postFixup = ''
# don't leak python into devshell
rm $out/nix-support/propagated-build-inputs
'';
shellHook = ''
export PATH=${path}:$PATH
'';
Expand Down

0 comments on commit 79908fc

Please sign in to comment.