From 894999e7218c4769b24ce0a005ff7751b07535ce Mon Sep 17 00:00:00 2001 From: Max Niederman Date: Wed, 24 Apr 2024 22:56:23 -0700 Subject: [PATCH] fix: use custom devShell to avoid rebuilds on source changes 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? --- flake.nix | 8 ++++++++ garnix.yaml | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 021c717..f63d239 100644 --- a/flake.nix +++ b/flake.nix @@ -47,5 +47,13 @@ centipede = cargoNix.workspaceMembers.centipede.build; default = centipede; }; + + devShell = pkgs.mkShell { + name = "centipede"; + + packages = [ + rust + ]; + }; }); } diff --git a/garnix.yaml b/garnix.yaml index b01ca30..2e01804 100644 --- a/garnix.yaml +++ b/garnix.yaml @@ -1,4 +1,5 @@ builds: include: - packages.*.* - - checks.*.* \ No newline at end of file + - checks.*.* + - devShell.* \ No newline at end of file