···55, lr, xe, zip, unzip, bash, writeCBin, coreutils
66, which, gawk, gnused, gnutar, gnugrep, gzip, findutils
77# updater
88-, python27, python3, writeScript
88+, python3, writeScript
99# Apple dependencies
1010, cctools, libcxx, CoreFoundation, CoreServices, Foundation
1111# Allow to independently override the jdks used to build and run respectively
···406406407407 genericPatches = ''
408408 # Substitute j2objc and objc wrapper's python shebang to plain python path.
409409- # These scripts explicitly depend on Python 2.7, hence we use python27.
410410- # See also `postFixup` where python27 is added to $out/nix-support
411411- substituteInPlace tools/j2objc/j2objc_header_map.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
412412- substituteInPlace tools/j2objc/j2objc_wrapper.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
413413- substituteInPlace tools/objc/j2objc_dead_code_pruner.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
409409+ substituteInPlace tools/j2objc/j2objc_header_map.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
410410+ substituteInPlace tools/j2objc/j2objc_wrapper.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
411411+ substituteInPlace tools/objc/j2objc_dead_code_pruner.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
414412415413 # md5sum is part of coreutils
416414 sed -i 's|/sbin/md5|md5sum|g' \
···424422 grep -rlZ /bin src/main/java/com/google/devtools | while IFS="" read -r -d "" path; do
425423 # If you add more replacements here, you must change the grep above!
426424 # Only files containing /bin are taken into account.
427427- # We default to python3 where possible. See also `postFixup` where
428428- # python3 is added to $out/nix-support
429425 substituteInPlace "$path" \
430426 --replace /bin/bash ${customBash}/bin/bash \
431427 --replace "/usr/bin/env bash" ${customBash}/bin/bash \
···616612 echo "${customBash} ${defaultShellPath}" >> $out/nix-support/depends
617613 # The templates get tar’d up into a .jar,
618614 # so nix can’t detect python is needed in the runtime closure
619619- # Some of the scripts explicitly depend on Python 2.7. Otherwise, we
620620- # default to using python3. Therefore, both python27 and python3 are
621621- # runtime dependencies.
622622- echo "${python27}" >> $out/nix-support/depends
623615 echo "${python3}" >> $out/nix-support/depends
624616 # The string literal specifying the path to the bazel-rc file is sometimes
625617 # stored non-contiguously in the binary due to gcc optimisations, which leads
···77, lr, xe, zip, unzip, bash, writeCBin, coreutils
88, which, gawk, gnused, gnutar, gnugrep, gzip, findutils
99# updater
1010-, python27, python3, writeScript
1010+, python3, writeScript
1111# Apple dependencies
1212, cctools, libcxx, CoreFoundation, CoreServices, Foundation
1313# Allow to independently override the jdks used to build and run respectively
···102102 # "@bison//:bin/bison",
103103 # ],
104104 # )
105105- #
106106- # Some of the scripts explicitly depend on Python 2.7. Otherwise, we
107107- # default to using python3. Therefore, both python27 and python3 are
108108- # runtime dependencies.
109105 [
110106 bash
111107 coreutils
···116112 gnused
117113 gnutar
118114 gzip
119119- python27
120115 python3
121116 unzip
122117 which
···432427433428 genericPatches = ''
434429 # Substitute j2objc and objc wrapper's python shebang to plain python path.
435435- # These scripts explicitly depend on Python 2.7, hence we use python27.
436436- # See also `postFixup` where python27 is added to $out/nix-support
437437- substituteInPlace tools/j2objc/j2objc_header_map.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
438438- substituteInPlace tools/j2objc/j2objc_wrapper.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
439439- substituteInPlace tools/objc/j2objc_dead_code_pruner.py --replace "$!/usr/bin/python2.7" "#!${python27}/bin/python"
430430+ substituteInPlace tools/j2objc/j2objc_header_map.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
431431+ substituteInPlace tools/j2objc/j2objc_wrapper.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
432432+ substituteInPlace tools/objc/j2objc_dead_code_pruner.py --replace "$!/usr/bin/python2.7" "#!${python3.interpreter}"
440433441434 # md5sum is part of coreutils
442435 sed -i 's|/sbin/md5|md5sum|g' \
···450443 grep -rlZ /bin/ src/main/java/com/google/devtools | while IFS="" read -r -d "" path; do
451444 # If you add more replacements here, you must change the grep above!
452445 # Only files containing /bin are taken into account.
453453- # We default to python3 where possible. See also `postFixup` where
454454- # python3 is added to $out/nix-support
455446 substituteInPlace "$path" \
456447 --replace /bin/bash ${bash}/bin/bash \
457448 --replace "/usr/bin/env bash" ${bash}/bin/bash \