Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 63834d63da87
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 12ddd9b0eb7b
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 4, 2020

  1. Copy the full SHA
    12ddd9b View commit details
Showing with 7 additions and 3 deletions.
  1. +7 −3 pkgs/development/tools/poetry/default.nix
10 changes: 7 additions & 3 deletions pkgs/development/tools/poetry/default.nix
Original file line number Diff line number Diff line change
@@ -33,9 +33,13 @@ poetry2nix.mkPoetryApplication {
mkdir -p $out/bin
cat > $out/bin/poetry <<EOF
#!${runtimeShell}
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages
exec ${python.interpreter} -m poetry "\$@"
#!${python.interpreter}
import sys
if __name__ == '__main__':
sys.path.append("$out/lib/${python.libPrefix}/site-packages")
from poetry.console import main
main()
EOF
chmod +x $out/bin/poetry