Skip to content

Conversation

@vpochapuis
Copy link

@vpochapuis vpochapuis commented Apr 23, 2024

What

This is a proposition of a Nix Shell ready to build and use the project with.
Feedback, improvements and modifications would be great!

Tested:

  • x86 Native Build and Run
  • WASM Build Serve and Run with Trunk
  • Android release (Wont work due to missing custom xbuild, this could be added using the Nix rustPlatform.buildRustPackage however would be easier to have the Cargo.lock present in the xbuild repo for it).
  • iOS release (I am not sure yet how this works)

Why

Let users quickly setup a working build environment in a distro/OS agnostic way. (This also could be used for CI use! However for binary release might need to use the patchelf utility).

How

I tried to bundle all I could find from the repository apart from some target CI release tools that would need further help to integrate.

(if possible, preference for a git squash merge using PR name or other, as the commit descriptions in my current PR state aren't great)

@NiklasEi
Copy link
Owner

Just in case you didn't see it: #85 is a previous attempt.
Why do we need to use nightly for everything?

@vpochapuis
Copy link
Author

Just in case you didn't see it: #85 is a previous attempt. Why do we need to use nightly for everything?

Thank you for your quick feedback!

Indeed there is no need to use nightly for everything I think i set it when trying to build xbuild and the android part. I will remove it.

As for #85 it seems this PR hasn't been updated for a while, I would like to give another chance to try and introduce this feature to the repository~

@bbarker
Copy link
Contributor

bbarker commented Jan 5, 2025

Hey, just to cross post here, i'm going to switch to using a flake.nix most likely in #85. That isn't to say a shell.nix wouldn't also be welcome (IMHO), they just may need to be supported independently, and known limitations disclosed.

@bbarker
Copy link
Contributor

bbarker commented Feb 11, 2025

OK, i've finally got something serviceable for Linux and MacOS - see #127

I'm not proposing to stop effort here necessarily, especially since I've found that Nix can at times throw you a curve ball, so it's nice to have a couple of solutions handy.

@NiklasEi
Copy link
Owner

NiklasEi commented Aug 2, 2025

@vpochapuis does the setup from #127 work for you?

@vpochapuis
Copy link
Author

@vpochapuis does the setup from #127 work for you?

Hi~
I do not use flakes on my NixOs and other devices. I guess it depends on whether nix users are using flakes or not. (I know its a big discussion in the nix ecosystem, as for me its just that i wanted to only learn the core stable nix features for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants