-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package with Nix #227
Comments
I have failed at completing this task before, got my self-estem hurt, cried a little, then ranted about JS being terrible on Twitter, then learned HTMX promising myself I will get my revenge and rewrite the whole thing in Rust with all the interactivity done via HTMX. Anyway, in the meantime it's probably easier to solve it by finding someone that understands npm/yarn + turbo that is willing to get hands dirty with Nix. |
The workaround I intend to use in the short term is fetching a pre-built tar archive, depends on #225. |
If we had a tarball, would you still want nix packaging? |
Eventually for sure, just wouldn't spend too much time on it for now. The bounty is there if anyone figures out a way to do it in the meantime. |
Call: 2 benefits
Will offers a deal: once we have a version that we want people to run in the distant future, we will do this |
Ideally we would be able to build the static site as a nix package. I made an attempt but failed so far, some learnings:
yarn2nix
seems to be the blessed way of doing soyarn install && yarn build
works in the nix dev shell (I also created a.#ui
shell on my fork without the Fedimint tooling, less compiling)package.json
needs aname
andversion
foryarn2nix
to do anything.node_modules
directory created byyarn2nix
has fewer directories than the one created byyarn install
. Why? Do some modules run their own install scripts not captured byyarn.lock
?turbo
, which I could find nothing about in relation toyarn2nix
, so there might be some weird interaction likeyarn
not being run in offline mode.If anyone opens a PR that adds a nix derivation to our existing flake which builds the both static sites (guardian-ui, gateway-ui) I'll happily send you 1M sats.
The error I was running into:
The text was updated successfully, but these errors were encountered: