| 6 Dec 2025 |
Randy Eckenrode | I wonder if I can do something hacky to swift-toolchain-sqlite to make it devendor sqlite. 🤔 | 12:44:26 |
vcunat | Ever seen something like this?
File "/nix/store/b229zll0pw9ljig3jblh2fda9in786i8-python3.13-knot-resolver-manager_6-6.0.17/bin/knot-resolver", line 2
PATH=${PATH:+':'$PATH':'}
^
SyntaxError: invalid syntax
This wrapper stuff is auto-generated by buildPythonPackage and it does work on linux.
| 13:24:41 |
vcunat | (except for a tiny non-python patch changing this hash, it's all just nixpkgs master) | 13:27:22 |
vcunat | Oh, does macOS behave different than Linux around executing scripts? 🤔 | 13:28:36 |
vcunat | i.e. maybe it's syntax error because a wrong interpreter is used? | 13:29:33 |
K900 | That's a Python syntax error | 13:29:55 |
K900 | In a script with clearly bash syntax | 13:30:00 |
K900 | So something is trying to call python <bash script> | 13:30:12 |
vcunat | Hmm, thanks. I think this moves me in a hopeful direction. | 13:32:28 |
vcunat | I see. It's an unexpected interaction of nix-specific wrapping machinery with OS-specific piece of code from upstream. | 13:47:44 |
vcunat | (when the script attempts to reexecute itself) | 13:48:07 |