From 7f802c704651baba3adb2abdd9cc6645c987b9ad Mon Sep 17 00:00:00 2001 From: Atemu Date: Tue, 19 Apr 2022 13:01:06 +0200 Subject: [PATCH] python-wrapper: use makeBinaryWrapper A "python" made with the wrapper is likely to be used as a shebang. On macOS, this requires a binary rather than another shebang'd script. --- pkgs/development/interpreters/python/wrapper.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/wrapper.nix b/pkgs/development/interpreters/python/wrapper.nix index 514930db359b..b36662335abe 100644 --- a/pkgs/development/interpreters/python/wrapper.nix +++ b/pkgs/development/interpreters/python/wrapper.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildEnv, makeWrapper +{ lib, stdenv, buildEnv, makeBinaryWrapper # manually pased , python @@ -27,7 +27,7 @@ let inherit ignoreCollisions; extraOutputsToInstall = [ "out" ] ++ extraOutputsToInstall; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeBinaryWrapper ]; postBuild = '' if [ -L "$out/bin" ]; then