!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1150 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org182 Servers

Load older messages


SenderMessageTime
6 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeI wonder if I can do something hacky to swift-toolchain-sqlite to make it devendor sqlite. 🤔12:44:26
@vcunat:matrix.orgvcunat

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:matrix.orgvcunat(except for a tiny non-python patch changing this hash, it's all just nixpkgs master)13:27:22
@vcunat:matrix.orgvcunatOh, does macOS behave different than Linux around executing scripts? 🤔13:28:36
@vcunat:matrix.orgvcunati.e. maybe it's syntax error because a wrong interpreter is used?13:29:33
@k900:0upti.meK900That's a Python syntax error13:29:55
@k900:0upti.meK900In a script with clearly bash syntax13:30:00
@k900:0upti.meK900 So something is trying to call python <bash script> 13:30:12
@vcunat:matrix.orgvcunatHmm, thanks. I think this moves me in a hopeful direction.13:32:28
@vcunat:matrix.orgvcunatI see. It's an unexpected interaction of nix-specific wrapping machinery with OS-specific piece of code from upstream.13:47:44
@vcunat:matrix.orgvcunat(when the script attempts to reexecute itself)13:48:07

There are no newer messages yet.


Back to Room ListRoom Version: 6