reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
723 stars 164 forks source link

try-reflex reports "cannot connect to socket" and "cannot coerce null to a string" #801

Closed lylek closed 11 months ago

lylek commented 2 years ago

Platform: macOS Monterey 12.5.1, aarch64, nix 2.10.3

% ./try-reflex
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues
Add binary caches for reflex to /etc/nix/nix.conf ?
1) Yes
2) No
3) Ask again next time
#? 1
/etc/nix/nix.conf already exists: creating backup - This requires root access.
Password:
backup saved at /etc/nix/nix.conf.2022-09-01T05:03:54Z.bak
Adding cache settings to /etc/nix/nix.conf - This requires root access.
Entering the reflex sandbox...
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
(use '--show-trace' to show detailed location information)

So then I tried:

% ./try-reflex --show-trace
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues
Entering the reflex sandbox...
error: cannot coerce null to a string

       at /nix/store/v875173zq41lvy43jkw1hl17m0amdsfc-source/pkgs/stdenv/generic/make-derivation.nix:192:34:

          191|         // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) {
          192|           name = "${attrs.pname}-${attrs.version}";
             |                                  ^
          193|         } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) {
(use '--show-trace' to show detailed location information)
lylek commented 2 years ago

Looks like the same issue reported in #770

ali-abrar commented 11 months ago

Please reopen if you encounter this issue with 1.2.0.0, which added support for aarch64 darwin