File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 14
14
matrix :
15
15
nixChannel :
16
16
- nixos-25.05
17
- - nixos-24.11 # remove this when 25.05 is out of beta
18
17
- nixos-unstable
19
18
- nixpkgs-unstable
20
19
Original file line number Diff line number Diff line change 23
23
let
24
24
overlays = [ rust-overlay . overlays . default ] ;
25
25
pkgs = import nixpkgs { inherit system overlays ; } ;
26
+ rustToolchain = pkgs . rust-bin . stable . "1.85.0" . default . override {
27
+ extensions = [ "rust-src" "clippy" "rustfmt" ] ;
28
+ } ;
26
29
in
27
30
{
28
31
packages =
35
38
} ;
36
39
37
40
devShells . default = pkgs . mkShell {
38
- buildInputs = ( with pkgs ; [
39
- rust-analyzer
40
- clippy
41
- rustfmt
42
- ] )
41
+ buildInputs = [
42
+ rustToolchain
43
+ pkgs . rust-analyzer
44
+ ]
43
45
++ self . packages . ${ system } . default . buildInputs
44
46
++ self . packages . ${ system } . default . nativeBuildInputs ;
45
47
} ;
Original file line number Diff line number Diff line change 7
7
rustPlatform ,
8
8
stdenv ,
9
9
pkg-config ,
10
+ rust-bin ,
10
11
} :
11
12
let
12
13
cargoToml = builtins . fromTOML ( builtins . readFile /${ root } /crates/${ x } /Cargo.toml ) ;
14
+ rustToolchain = rust-bin . stable . "1.85.0" . default . override {
15
+ extensions = [ "rust-src" "clippy" "rustfmt" ] ;
16
+ } ;
17
+ rustPlatformWithToolchain = rustPlatform . override {
18
+ rustc = rustToolchain ;
19
+ cargo = rustToolchain ;
20
+ } ;
13
21
in
14
- rustPlatform . buildRustPackage {
22
+ rustPlatformWithToolchain . buildRustPackage {
15
23
pname = cargoToml . package . name ;
16
24
version = cargoToml . package . version ;
17
25
You can’t perform that action at this time.
0 commit comments