Skip to content

Commit

Permalink
fix: use custom devShell to avoid rebuilds on source changes
Browse files Browse the repository at this point in the history
It's rebuilding because we're using IFD to build the Cargo.nix, which is an input to the Centipede package.
Maybe this can be fixed by only using ./Cargo.lock as an input to the generatedCargoNix call?
  • Loading branch information
max-niederman committed Apr 25, 2024
1 parent 1c85aca commit 894999e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,13 @@
centipede = cargoNix.workspaceMembers.centipede.build;
default = centipede;
};

devShell = pkgs.mkShell {
name = "centipede";

packages = [
rust
];
};
});
}
3 changes: 2 additions & 1 deletion garnix.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
builds:
include:
- packages.*.*
- checks.*.*
- checks.*.*
- devShell.*

0 comments on commit 894999e

Please sign in to comment.