Add nix flake + package definitions for editor & export templates #954
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.
Description
This PR adds a Nix package definition for the Redot editor, as well as the export templates for
linuxbsd
andwindows
.Once merged, it will be possible to build / install the editor and export templates locally using the Nix package manager. The Nix package manager itself is distro-agnostic, and can be downloaded for Linux as well as MacOS here: https://nixos.org/
To test this PR, it is possible to run the following command to build the editor locally using Nix:
Then run
./result/bin/redot4
to run the editor. For the export templates, you can run the following:The export templates will be symlinked under
./result/share/redot/export_templates/[engine-version]
Note
The nix build script retrieves the version info from
version.py
and assumes that variables and values are delimited by " = " (space-equalsign-space).Dev Shell
A rudimentary dev shell that provides all packages used by the nix derivation is also provided via
devShells.default
, including an.envrc
file for use withdirenv
.The
.gitignore
file has been updated to exclude Nix-specific directories (outputs & direnv cache).Caveats
Closes #247
Closes #154