and then npm and napalm need to be force-killed in order to get the nix builder to exit (even after hitting Ctrl-C to interrupt the build).
Digging into the logs further, I noticed that although napalm is nominally binding to "localhost" while npm is connecting to "::1", which ought to work, it turns out that napalm is actually only listening on 127.0.0.1:
Anyway, after noodling on this for a bit, I took a look at /etc/hosts:
$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
and, sure enough, commenting out the ::1 entry enables the build to succeed.
I just ran into an interesting issue (and arguably, an impurity in flakes on darwin) while trying to build https://github.com/ejgallego/coq-lsp?submodules=1#packages.aarch64_darwin.vscode-extension.
The symptom of the problem is that
nix build -L
hangs with npm error messages like:and then
npm
andnapalm
need to be force-killed in order to get the nix builder to exit (even after hitting Ctrl-C to interrupt the build).Digging into the logs further, I noticed that although napalm is nominally binding to "localhost" while npm is connecting to "::1", which ought to work, it turns out that napalm is actually only listening on 127.0.0.1:
Anyway, after noodling on this for a bit, I took a look at /etc/hosts:
and, sure enough, commenting out the
::1
entry enables the build to succeed.