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.
This commit is contained in:
Atemu 2022-04-19 13:01:06 +02:00 committed by Frederik Rietdijk
parent f8e9f3cd9a
commit 7f802c7046

View File

@ -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