Create shell.nix for quick Nix(OS) setup #440
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows nix or NixOS users to just run
nix-shell
in the repo and get almost everything listed in the getting started guide up and running automagically. Worth noting that following steps need to be taken manually:nix-shell
the first time in this repo, it'll error, print the license and tell you how to accept it (through nixpkgs configuration).programs.adb.enable = true;
and adding your user to theadbusers
group suffices, see the Android page in the inofficial wiki.Adding
--package crab-saber
to thecargo apk
command was required for me to get it even running, else it complained about not being sure which workspace member to pick.Note: Since I have no VR device, Android deployment was tested using my mobile phone. I did observe the app building and launching on my phone, however, it gave no display output (but errored still just fine and displayed that on the host PC).