File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 47
47
} ) ;
48
48
in {
49
49
inherit
50
+ commonArgs
50
51
myCrate
51
52
myCrateClippy
52
53
myCrateCoverage
Original file line number Diff line number Diff line change 45
45
inherit pre-commit-check ;
46
46
} ) ;
47
47
48
- devShells = forEachSystem ( system : {
49
- default = nixpkgs . legacyPackages . ${ system } . mkShell {
50
- nativeBuildInputs = with nixpkgs . legacyPackages . ${ system } ; [
51
- cargo
52
- clippy
53
- rust-analyzer
54
- rustc
55
- rustfmt
56
- ] ;
48
+ devShells = forEachSystem ( system : let
49
+ pkgs = nixpkgs . legacyPackages . ${ system } ;
50
+ craneDerivations = pkgs . callPackage ./default.nix { inherit crane ; } ;
51
+ in {
52
+ default = pkgs . mkShell {
53
+ nativeBuildInputs = with pkgs ;
54
+ [
55
+ cargo
56
+ clippy
57
+ rust-analyzer
58
+ rustc
59
+ rustfmt
60
+ ]
61
+ ++ craneDerivations . commonArgs . nativeBuildInputs ;
62
+
63
+ RUST_SRC_PATH = "${ pkgs . rust . packages . stable . rustPlatform . rustLibSrc } " ;
57
64
58
65
inherit ( self . checks . ${ system } . pre-commit-check ) shellHook ;
59
66
} ;
You can’t perform that action at this time.
0 commit comments