From 4e70272946c42ecb9a252bdc8ad7acd785d26f2b Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sat, 16 Sep 2023 14:08:29 -0500 Subject: [PATCH] Include Cargo deps in Nix devshell --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 088c00c..458d63b 100644 --- a/flake.nix +++ b/flake.nix @@ -121,11 +121,10 @@ apps.default = flake-utils.lib.mkApp { drv = rga; }; # `nix develop` - devShells.default = pkgs.mkShell { + devShells.default = craneLib.devShell { inherit (self.checks.${system}.pre-commit) shellHook; inputsFrom = builtins.attrValues self.checks; - buildInputs = buildInputs - ++ (with pkgs; [ cargo nixfmt rustc rustfmt ]); + packages = buildInputs; }; }); }