diff options
author | Artturin <Artturin@artturin.com> | 2023-06-17 22:49:06 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-06-17 22:58:14 +0300 |
commit | 3ea5e8337304e65b77f0d56ca872ddac6516b970 (patch) | |
tree | 88087dac771ce46368e01d74c7cc0d25b953c47e | |
parent | d6e221f0790f0d4ee4d06ef007a8cb5cf81c547f (diff) | |
download | nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar.gz nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar.bz2 nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar.lz nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar.xz nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.tar.zst nixpkgs-3ea5e8337304e65b77f0d56ca872ddac6516b970.zip |
writers.makePythonWriter: fix interpreter executable
-rw-r--r-- | pkgs/build-support/writers/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 2c26f350fbd..3016a45b8a0 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" |