-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
nix shell w/ npins #772
base: main
Are you sure you want to change the base?
nix shell w/ npins #772
Conversation
054d912
to
11ff325
Compare
Signed-off-by: phanirithvij <[email protected]>
11ff325
to
710db14
Compare
Signed-off-by: phanirithvij <[email protected]>
Signed-off-by: phanirithvij <[email protected]>
Hey @phanirithvij, thanks for your contribution! I gave your two PRs a try, but I ran into issues on macOS (M1), so I wasn't able to fully test it. I’m not really knowledgeable about Nix (or processing-android for that matter), but it looks like Nix could make it easier for new contributors to set up a consistent local environment? It’d be great if the nix setup could work across platforms like Windows, macOS (ARM), and Linux, even without expert knowledge of Nix. |
On Windows it isn't possible yet (WSL works) but macos and Linux are covered by nix. |
Thanks for the clarification, @phanirithvij! I tried running the Nix setup on macOS (ARM), but I ran into issues (log on pastebin) I tried to set Any guidance on how to adjust the Nix shell for macOS with Apple Silicon compatibility would be super helpful! It seems like this setup could be great for easing the environment setup for new contributors, but right now, I’m struggling to get it working on my M1 mac. Thanks again for your efforts! |
previously I had to use buildfhsuserenv and also glibc for some reason, that I forget Signed-off-by: phanirithvij <[email protected]>
Add a nix shell script for ease of building.
A simple
export NIXPKGS_ALLOW_UNFREE=1; nix-shell
andcd processing; ./gradlew dist
with onlynix
as the dependency.A few minor bugs need to be fixed before testing this pr. ie. depends on #771 (the nonexistent
vr/libs
dir)The
npins/*
is a helper script for nix, generated it vianix-shell -p npins --run "npins init"
, it can be ignored in review.