python3.pkgs.gyp: patch shebang in mac_tool.py

This commit is contained in:
Theodore Ni 2023-08-12 04:30:36 -07:00
parent c123306737
commit e00ad60852
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

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";