!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

199 Members
57 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
9 Jan 2024
@samasaur:matrix.orgsamasaur
In reply to @julia:the-apothecary.club
I believe that darwin's nix config defaults to the sandbox being disabled, so that's probably why it builds there. (one could verify this assumption with --option sandbox true on macOS or --option sandbox false on Linux.
nix build . --sandbox still works on Darwin, so I think that's not it
01:13:44
@julia:the-apothecary.club@julia:the-apothecary.club * From googling, it looks like there's a CYPRESS_RUN_BINARY and CYPRESS_INSTALL_BINARY variable which allows you to set it to an existing path. (https://docs.cypress.io/guides/references/advanced-installation) 01:13:47
@julia:the-apothecary.club@julia:the-apothecary.clubYes, but it's disabled by default.01:13:52
@samasaur:matrix.orgsamasaur right but doesn't --sandbox enable it? so if it still builds with the sandbox, then that's not the issue? 01:14:57
@julia:the-apothecary.club@julia:the-apothecary.clubah.01:16:21
@julia:the-apothecary.club@julia:the-apothecary.club
In reply to @julia:the-apothecary.club
From googling, it looks like there's a CYPRESS_RUN_BINARY and CYPRESS_INSTALL_BINARY variable which allows you to set it to an existing path. (https://docs.cypress.io/guides/references/advanced-installation)
Yeah, you're right. I think this should still work though, cause the issue on Linux is trying to access the internet (which isn't possible in a sandbox).
01:17:16
@samasaur:matrix.orgsamasaur so maybe set CYPRESS_INSTALL_BINARY=0 (to skip binary installs) and then set CYPRESS_RUN_BINARY=${pkgs.cypress}/bin/Cypress? 01:20:49
@samasaur:matrix.orgsamasaurwill give it a shot01:20:58
@julia:the-apothecary.club@julia:the-apothecary.clubHere's someone else's package using cypress: https://github.com/NixOS/nixpkgs/blob/d405cc8e0e47f8c45f72729000395f3eb3f73a70/pkgs/servers/monitoring/uptime-kuma/default.nix#L2401:22:19
@julia:the-apothecary.club@julia:the-apothecary.club(there's a few of those)01:22:45
@samasaur:matrix.orgsamasaurthanks!01:23:18
@samasaur:matrix.orgsamasaur
In reply to @samasaur:matrix.org
so maybe set CYPRESS_INSTALL_BINARY=0 (to skip binary installs) and then set CYPRESS_RUN_BINARY=${pkgs.cypress}/bin/Cypress?
also this appears to have worked!
01:23:24
@samasaur:matrix.orgsamasaur based on that package you linked I would think that CYPRESS_RUN_BINARY is unnecessary but I will leave it in there 01:23:54
@julia:the-apothecary.club@julia:the-apothecary.clubcoolios. I guess mac must not download cypress? or do something different. which is kinda weird.01:24:09

Show newer messages


Back to Room ListRoom Version: 6