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 nix flake #128

Merged
merged 1 commit into from
Jun 5, 2024
Merged

add nix flake #128

merged 1 commit into from
Jun 5, 2024

Conversation

arulagrawal
Copy link
Contributor

This pr adds a simple nix flake to aid development/building for nix users without having to manually configure the rust toolchain.

I set this up to target musl, but actually it probably isn't necessary at all, since with nix, the docker image can be built directly. If you want, I could test/change it to the default target. It is also hardcoded to x86_64 at the moment, but it's probably fine(?) since I'm not trying to replace the existing workflows, but rather just provide an entrypoint for nix users.

The binary can be built with nix build and the docker image with nix build .#docker, after which you can load it with docker load < result. The docker image created here is not exactly the same as the Dockerfile in the repo (I don't create a redlib user) but it is compatible with the compose files which are in the repo already.

@sigaloid sigaloid merged commit a6f901c into redlib-org:main Jun 5, 2024
3 checks passed
@sigaloid sigaloid mentioned this pull request Jul 21, 2024
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