basic shell.nix for nixos users #3710
JJJHolscher
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
NixOS encourages you to isolate your system dependencies into a shell.nix.
Figuring this out was a bit of a hassle for me, especially considering that dioxus asks for a bunch of libraries, and the names aren't always what you end up needing.
To save you (some) trouble, here is a minimal
shell.nix
with which I could run the todomvc example app on the linux platform withdx serve --platform linux
and the required
rust-toolchain.toml
:There's a good chance you will want to remove or add additional dependencies for your own usecase, and I might have done things suboptimally.
But at least hereby you (or your LLM search engine) have some reference material.
Beta Was this translation helpful? Give feedback.
All reactions