Add Nix shell configuration for compiling using Nix #760
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 pull request simply adds a Nix development shell configuration in a
shell.nix
file to allow compiling and testing using the Nix package manager. This is especially useful on NixOS, which is hosted alongside Nix.The added file tells Nix to do the following operations when opening a development shell:
libs
variable.libsForQt5.qttools
, which is the package for qttools available in this tarball.LD_LIBRARY_PATH
to use the proper library paths, since Lime apparently checks this environment variable for additional libraries explicitly. This also includes SDL2.source
s the update script in the shell hook, which is run on startup of the development shell.Do note that, although Nix supports macOS natively, I am unable to test it because I do not have a macOS device of any kind of my own (although the usage of certain libraries and how they'll work on macOS, or any Darwin variant for that matter, is questionable).
Additionally, the Nix shell configuration is intended for me to compile for another pull request, which I will create in due time. However, that branch will have the main branch of my contribution fork as the ancestor, so no commits from this branch will be used.