Skip to content

Created an automatic, reproducible development environment#47

Merged
cachebag merged 3 commits intocachebag:masterfrom
of-the-stars:master
Nov 3, 2025
Merged

Created an automatic, reproducible development environment#47
cachebag merged 3 commits intocachebag:masterfrom
of-the-stars:master

Conversation

@of-the-stars
Copy link
Contributor

  • Created an automatic development environment via a nix flake
  • Supports both nix develop and direnv allow
  • Added rust-toolchain.toml to specify what version of the rust language to use

It lets anyone using the nix package manager and the experimental flakes feature to create the same development environment every single time, which allows for easier contribution.

Basically sets up everything a developer needs to work on the project without having to run a bunch of commands that aren't easily reproduced.

TODO: Look deeper into how the code is packaged to automatically create a package based off of existing build tools :)

- Created an automatic development environment via a nix flake
- Supports both `nix develop` and `direnv allow`
- Added `rust-toolchain.toml` to specify what version of the rust
  language to use
@cachebag cachebag self-assigned this Nov 3, 2025
@cachebag
Copy link
Owner

cachebag commented Nov 3, 2025

@of-the-stars

Thanks so much for your PR! I think this will be super valuable. Appreciate the contribution :)

@cachebag cachebag self-requested a review November 3, 2025 10:33
@cachebag cachebag assigned of-the-stars and unassigned cachebag Nov 3, 2025
of-the-stars and others added 2 commits November 3, 2025 10:59
As @cachebag pointed out, I was defining the method call with a custom
toolchain attribute set but didn't use it when calling the `buildPackage` function.

Removed the `naersk-lib` definition, and renamed `naersk'` to
`naersk-package` for a clearer name and used it to build the package
later.

Whether or not this actually builds the package as needed requires more
understanding on my part, but it should build a binary just fine for all
targets that `nix` can run on.
@of-the-stars of-the-stars requested a review from cachebag November 3, 2025 17:06
@cachebag
Copy link
Owner

cachebag commented Nov 3, 2025

@of-the-stars
Thank you! For the future, make sure you rebase master instead of merging directly.

Very appreciative of this addition!

@cachebag cachebag merged commit 24387e7 into cachebag:master Nov 3, 2025
1 check passed
@cachebag cachebag mentioned this pull request Nov 22, 2025
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