Merge pull request #248708 from tjni/gyp

python3.pkgs.gyp: patch shebang in mac_tool.py
This commit is contained in:
Theodore Ni 2023-08-18 23:48:49 -07:00 committed by GitHub
commit 71154e01a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,12 @@ buildPythonPackage {
pythonImportsCheck = [ "gyp" "gyp.generator" ];
# Make mac_tool.py executable so that patchShebangs hook processes it. This
# file is copied and run by builds using gyp on macOS
preFixup = ''
chmod +x "$out/${python.sitePackages}/gyp/mac_tool.py"
'';
meta = with lib; {
description = "A tool to generate native build files";
homepage = "https://gyp.gsrc.io";