Skip to content

Commit

Permalink
ci: move components to flakes so it won't affect builders (GreptimeTe…
Browse files Browse the repository at this point in the history
…am#5464)

* ci: move components to flakes so it won't affect builders

* chore: add gnuplot for benchmark/criterion
  • Loading branch information
sunng87 authored Jan 31, 2025
1 parent f378d21 commit deaa1f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 15 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
libgit2
libz
];

lib = nixpkgs.lib;
rustToolchain = fenix.packages.${system}.fromToolchainName {
name = (lib.importTOML ./rust-toolchain.toml).toolchain.channel;
sha256 = "sha256-f/CVA1EC61EWbh0SjaRNhLL0Ypx2ObupbzigZp8NmL4=";
};
in
{
devShells.default = pkgs.mkShell {
Expand All @@ -30,14 +34,20 @@
protobuf
gnumake
mold
(fenix.packages.${system}.fromToolchainFile {
dir = ./.;
sha256 = "sha256-f/CVA1EC61EWbh0SjaRNhLL0Ypx2ObupbzigZp8NmL4=";
})
(rustToolchain.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
"rust-analyzer"
"llvm-tools"
])
cargo-nextest
cargo-llvm-cov
taplo
curl
gnuplot ## for cargo bench
];

LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
Expand Down
1 change: 0 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[toolchain]
channel = "nightly-2024-12-25"
components = ["rust-analyzer", "llvm-tools"]

0 comments on commit deaa1f9

Please sign in to comment.