Use python.interpreter instead of reconstructing interpreter path

This commit is contained in:
adisbladis 2019-12-31 22:49:39 +00:00
parent 4f584835c9
commit 7b20b192a2
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -35,7 +35,7 @@ poetry2nix.mkPoetryApplication {
cat > $out/bin/poetry <<EOF
#!${runtimeShell}
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH
exec ${python}/bin/python -m poetry "\$@"
exec ${python.interpreter} -m poetry "\$@"
EOF
chmod +x $out/bin/poetry