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: Adds flake #517

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

thomastaylor312
Copy link
Contributor

This adds a flake.nix and associated files for a dev environment via nix and steps for building all the parts of wadm in an incremental way. Part of this was an experiment to see what we could get nix to do with monorepo deps in the simple case. Please note that this does not actually add this as part of the build pipeline, just adds the file the repo for people to use. Maybe in the future we can add in builds and caching into our pipelines.

thomastaylor312 and others added 3 commits December 13, 2024 17:21
Adds a nix flake for usage in building things. It is still missing the
ability to run an e2e test and build docker images, but it does work
for both building and nix shell

Signed-off-by: Taylor Thomas <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
@thomastaylor312 thomastaylor312 requested a review from a team as a code owner December 14, 2024 00:34
@thomastaylor312
Copy link
Contributor Author

Special thanks to @rvolosatovs for helping me figure out the cargo.toml munging

serde_json::to_vec(&DeleteModelRequest {
version: None,
}).unwrap(),
serde_json::to_vec(&DeleteModelRequest { version: None }).unwrap(),
Copy link
Contributor Author

@thomastaylor312 thomastaylor312 Dec 14, 2024

Choose a reason for hiding this comment

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

Note: These changes were just a missing cargo fmt that I found while running tests in the flake

# Add additional build inputs here
] ++ lib.optionals pkgs.stdenv.isDarwin [
# Additional darwin specific inputs can be set here
pkgs.libiconv
Copy link
Member

Choose a reason for hiding this comment

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

Is this actually needed in 24.11?

Comment on lines +243 to +244
} // lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
workspace-llvm-coverage = craneLibLLvmTools.cargoLlvmCov
Copy link
Member

Choose a reason for hiding this comment

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

Is this not supported on Darwin?

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