File tree Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Expand file tree Collapse file tree 3 files changed +7
-16
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
17
18
- nixos-unstable
18
19
- nixpkgs-unstable
19
20
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
- } ;
29
26
in
30
27
{
31
28
packages =
38
35
} ;
39
36
40
37
devShells . default = pkgs . mkShell {
41
- buildInputs = [
42
- rustToolchain
43
- pkgs . rust-analyzer
44
- ]
38
+ buildInputs = ( with pkgs ; [
39
+ rust-analyzer
40
+ clippy
41
+ rustfmt
42
+ ] )
45
43
++ self . packages . ${ system } . default . buildInputs
46
44
++ self . packages . ${ system } . default . nativeBuildInputs ;
47
45
} ;
Original file line number Diff line number Diff line change 7
7
rustPlatform ,
8
8
stdenv ,
9
9
pkg-config ,
10
- rust-bin ,
11
10
} :
12
11
let
13
12
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
- } ;
21
13
in
22
- rustPlatformWithToolchain . buildRustPackage {
14
+ rustPlatform . buildRustPackage {
23
15
pname = cargoToml . package . name ;
24
16
version = cargoToml . package . version ;
25
17
You can’t perform that action at this time.
0 commit comments