Skip to content

Commit

Permalink
setup: add nextest to nix flake shells
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Jun 10, 2024
1 parent 3ac8e39 commit 91ec296
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@
rustemo = import ./. {
inherit crane pkgs rev;
};
shellPkgs = [ pkgs.cargo-nextest ];
in
{
devShells.default = pkgs.mkShell { buildInputs = book.buildInputs ++ rustemo.buildInputs; };
devShells.beta = pkgs.mkShell { buildInputs = book.buildInputs ++ [ pkgs.rust-bin.beta.latest.default ]; };
devShells.nightly = pkgs.mkShell { buildInputs = book.buildInputs ++ [ pkgs.rust-bin.nightly.latest.default ]; };
devShells.default = pkgs.mkShell {
buildInputs = book.buildInputs ++ rustemo.buildInputs ++ shellPkgs;
};
devShells.beta = pkgs.mkShell {
buildInputs = book.buildInputs ++ [ pkgs.rust-bin.beta.latest.default ] ++ shellPkgs;
};
devShells.nightly = pkgs.mkShell {
buildInputs = book.buildInputs ++ [ pkgs.rust-bin.nightly.latest.default ] ++ shellPkgs;
};
inherit (rustemo) checks;
packages = rustemo.packages // book.packages;
}
Expand Down

0 comments on commit 91ec296

Please sign in to comment.