Skip to content
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

feat: Introduce Flake for development and builds #148

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shymega
Copy link

@shymega shymega commented Sep 11, 2024

This PR introduces a Nix flake, allowing for InfiniSim to be built as a Flake, including a FHS development environment.

We also introduce flake-compat, allowing for non-Flake Nix mahcines to use the project as-is, both for building (default.nix), and development (shell.nix).

Additionally, we introduce .envrc, meaning that with direnv, the Nix Flake is activated automatically.

@shymega
Copy link
Author

shymega commented Sep 11, 2024

Marked as a draft until we bump the InfiniTime submodule to v1.14.1.

This will allow the new Python lv_img_conv executable to be found.

Without that, this Flake cannot build successfully.

See: #149.

@shymega shymega force-pushed the shymega-feat/nix-flake branch 2 times, most recently from 8131b4a to 14d8953 Compare October 13, 2024 15:13
This PR introduces a Nix flake, allowing for InfiniSim to be built as a
Flake, including a FHS development environment.

We also introduce `flake-compat`, allowing for non-Flake Nix mahcines to
use the project as-is, both for building (`default.nix`), and
development (`shell.nix`).

Additionally, we introduce `.envrc`, meaning that with `direnv`, the Nix
Flake is activated automatically.

It should be noted that we require
InfiniTimeOrg/InfiniTime#2121 to be merged
into mainline before this PR will work. It will currently fail - this is
expected at this stage. A lockfile needs to be generated after the above
PR is merged - this PR here should NOT be merged until that is
completed.

Signed-off-by: Dom Rodriguez <[email protected]>
@shymega
Copy link
Author

shymega commented Nov 13, 2024

Currently blocked by InfiniTimeOrg/InfiniTime#2121.

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.

1 participant