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-20 21:59:47 +02:00
committed by Frederik Rietdijk
parent f8e9f3cd9a
commit 7f802c7046
@@ -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