From 3ea5e8337304e65b77f0d56ca872ddac6516b970 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 17 Jun 2023 22:49:06 +0300 Subject: [PATCH] writers.makePythonWriter: fix interpreter executable --- pkgs/build-support/writers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 2c26f350fbd7..3016a45b8a0f 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -264,8 +264,8 @@ let makeScriptWriter { interpreter = if libraries == [] - then "${python}/bin/python" - else "${python.withPackages (ps: libraries)}/bin/python" + then python.interpreter + else (python.withPackages (ps: libraries)).interpreter ; check = optionalString python.isPy3k (writeDash "pythoncheck.sh" '' exec ${buildPythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"