| 9 Jan 2024 |
samasaur | 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 | will give it a shot | 01:20:58 |
@julia:the-apothecary.club | Here's someone else's package using cypress: https://github.com/NixOS/nixpkgs/blob/d405cc8e0e47f8c45f72729000395f3eb3f73a70/pkgs/servers/monitoring/uptime-kuma/default.nix#L24 | 01:22:19 |
@julia:the-apothecary.club | (there's a few of those) | 01:22:45 |
samasaur | thanks! | 01:23:18 |
samasaur | 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 | 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 | coolios. I guess mac must not download cypress? or do something different. which is kinda weird. | 01:24:09 |
samasaur | honestly i think you were right and it's a sandboxing thing. i cannot prove it but i vaguely recall seeing a similar error initially on mac and doing weird NPM stuff outside of nix until it worked. so maybe that's still having an impact | 01:25:29 |
@julia:the-apothecary.club | In reply to @samasaur:matrix.org
nix build . --sandbox still works on Darwin, so I think that's not it actually, is this with a clean nix store / new build
because npmDepsHash implies to me the npm deps get put to the store separately; it's not gonna try redownload if it's specified already. (not 100% on certain that's how it works, but I'd be surprised if it wasn't)
| 01:26:24 |
@julia:the-apothecary.club | In reply to @samasaur:matrix.org
nix build . --sandbox still works on Darwin, so I think that's not it * actually, is this with a clean nix store / new build?
because npmDepsHash implies to me the npm deps get put to the store separately; it's not gonna try redownload if it's specified already. (not 100% on certain that's how it works, but I'd be surprised if it wasn't)
| 01:26:29 |
samasaur | oh true | 01:26:49 |
samasaur | also despite it building on Linux, when i put it in a Docker image and tried to run the docker image, I still got exec format error | 01:27:17 |
samasaur | so something else is wrong | 01:27:30 |
@julia:the-apothecary.club | not particularly certain with docker things, what does file report? | 01:31:11 |
samasaur | well nix build . && ./result/bin/remote-text-web-client runs fine | 01:32:16 |
@julia:the-apothecary.club | is this purely on linux? | 01:32:33 |
samasaur | yeah | 01:32:38 |
@julia:the-apothecary.club | idk what docker's "exec format error" means but is there a nix store in the docker image? | 01:32:51 |
samasaur | i think so | 01:33:00 |
@julia:the-apothecary.club | cause my guess would be it's probably looking for the dynamic linker in the nix store | 01:33:03 |
@julia:the-apothecary.club | * cause my guess would be it's probably looking for the dynamic linker in the nix store which might not exist | 01:33:08 |
samasaur | i am also not super confident with docker, and I don't know how to get the file out of docker | 01:33:16 |
@julia:the-apothecary.club | * cause my guess would be it's probably looking for the dynamic linker in the nix store which might not exist in the docker image | 01:33:18 |
@julia:the-apothecary.club | can you run bash inside of docker? | 01:33:30 |
@julia:the-apothecary.club | * can you run bash inside of docker, and then run file on it there? | 01:35:19 |
samasaur | my understanding is that i would run `docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz | 01:36:08 |
samasaur | * my understanding is that i would run `docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz` to launch a terminal, but that gives the exec format error before a shell opens | 01:36:21 |
samasaur | * my understanding is that i would run docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz to launch a terminal, but that gives the exec format error before a shell opens | 01:36:37 |
samasaur | maybe i can prevent it from running the configured Cmd | 01:36:52 |