ci: move components to flakes so it won't affect builders (#5464)

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

* chore: add gnuplot for benchmark/criterion
This commit is contained in:
Ning Sun
2025-01-31 16:55:59 +08:00
committed by GitHub
parent f378d218e9
commit deaa1f9578
2 changed files with 15 additions and 6 deletions

View File

@@ -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 {
@@ -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;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "nightly-2024-12-25"
components = ["rust-analyzer", "llvm-tools"]