Replies: 1 comment 2 replies
-
|
Can you point me to the downstream projects doing it in Nix (using rust-flake) for this before we even consider upstreaming it? In other words, let's start from a concrete downstream example. Often times, abstractions for the sake of abstractions is a bad idea, but starting from concrete use cases gives more confidence about the corresponding abstraction's utility (or the lack thereof). Also this is potentially relevant: srid/leptos-fullstack#22 |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Could you add some options to add common dependencies like the ones for
winitortauri,iced,bevy1, etc.?It's be great to have a single source of truth for stuff like this that's a hard thing for Nix users and newcomers.
Examples include:
vulkan-loadermust be inLD_LIBRARY_PATHfor Vulkan (used in wgpu, and through that GUI libraries) to worklibGL(not libglvnd directly, which breaks Darwin and Android support) must be inbuildPackagesfor OpenGL to workLD_LIBRARY_PATHfor Winit to workfontconfigandfreetypeare often used in GUI librariesCould this even be automatic by reading Cargo.lock?
Footnotes
Specifying
env.RUSTFLAGS = "-C link-arg=-fuse-ld=lld";through Nix may be a better way than through.cargo/config.tomlso that all contributors without Nix aren't forced into using LLD, and it keeps LLD innativeBuildInputsnear the code that makes Rust use it. Also, (big one): you don't need templates to do this that can go obsolete after applying them!!!! Adding-Zshare-generics=yon nightly? ↩Beta Was this translation helpful? Give feedback.
All reactions