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

Add flake to support building via nix. #44

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Add flake to support building via nix. #44

merged 3 commits into from
Aug 30, 2023

Conversation

kquick
Copy link
Member

@kquick kquick commented Aug 30, 2023

No description provided.

Copy link
Collaborator

@langston-barrett langston-barrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The following general comments can be addressed in this PR or we can merge this and make follow-up issues:

  • Can we add a shell to the flake and delete shell.nix?
  • I understand that the tests aren't quite passing yet. Let's make an issue tracking this.
  • Can we run a build with Nix in CI? If it takes much longer than the normal build, perhaps we could run it just on the main branch.

flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
flake.nix Outdated Show resolved Hide resolved
@kquick
Copy link
Member Author

kquick commented Aug 30, 2023

Nice! The following general comments can be addressed in this PR or we can merge this and make follow-up issues:

* Can we add a shell to the flake and delete `shell.nix`?

Done. I did not delete the shell.nix: left that as your call, but a nix develop will now allow working with this package.

* Can we run a build with Nix in CI? If it takes much longer than the normal build, perhaps we could run it just on the main branch.

We can; I will add that separately. I don't think it'll be much shorter, despite nix caching, because the buildRustPackage defers to cargo for dependencies, so there's no speed-up by nix caching of dependencies.

@kquick kquick merged commit 40a66cc into main Aug 30, 2023
3 checks passed
@kquick kquick deleted the add_nix_flake branch August 30, 2023 18:33
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.

2 participants