From d37e9e1af0dd63039e9710c465962ea761146b62 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 ++++++++ 1 file changed, 8 insertions(+) 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 + ]; + }; }); }