-
Notifications
You must be signed in to change notification settings - Fork 10
This file allows to run the test environment simply with '$ nix develop' #8
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| description = "Flake for Marmot Development Kit (MDK) Rust project"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
| flake-utils.url = "github:numtide/flake-utils"; | ||
| rust-overlay.url = "github:oxalica/rust-overlay"; | ||
| }; | ||
|
|
||
| outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }: | ||
| flake-utils.lib.eachDefaultSystem (system: | ||
| let | ||
| pkgs = import nixpkgs { | ||
| inherit system; | ||
| overlays = [ (import rust-overlay) ]; | ||
| }; | ||
| rust = pkgs.rust-bin.stable.latest.default; | ||
| in | ||
| { | ||
| devShells.default = pkgs.mkShell { | ||
| buildInputs = with pkgs; [ | ||
| rust | ||
| cargo | ||
| openssl | ||
| pkg-config | ||
| sqlite | ||
| just | ||
| ]; | ||
|
|
||
| shellHook = '' | ||
| echo "✅ MDK dev shell loaded. Use 'cargo build', 'cargo test', or 'just' for development." | ||
| ''; | ||
| }; | ||
| } | ||
| ); | ||
| } | ||
|
Comment on lines
+1
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify flake.lock is committed. Ensure that Run this script to check if 🏁 Script executed: #!/bin/bash
# Check if flake.lock exists and is tracked by git
if [ -f "flake.lock" ]; then
echo "✓ flake.lock exists"
git ls-files --error-unmatch flake.lock 2>/dev/null
if [ $? -eq 0 ]; then
echo "✓ flake.lock is tracked by git"
else
echo "✗ flake.lock exists but is not tracked by git"
fi
else
echo "✗ flake.lock does not exist - run 'nix flake lock' to generate it"
fiLength of output: 65 Add and commit 🤖 Prompt for AI Agents |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant
cargofrom buildInputs.The
rust-bin.stable.latest.defaulttoolchain from rust-overlay already includescargo, making the explicitcargoentry on line 23 redundant.Apply this diff:
buildInputs = with pkgs; [ rust - cargo openssl pkg-config sqlite just ];📝 Committable suggestion
🤖 Prompt for AI Agents