File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
runtimes/rust/lbr-prelude Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 18
18
nativeBuildInputs = [ pkgs . makeWrapper ] ;
19
19
postBuild = ''
20
20
wrapProgram $out/bin/cargo-fmt \
21
- --prefix PATH : ${ lib . makeBinPath [ rust-bin . rustfmt ] }
21
+ --prefix PATH : ${ lib . makeBinPath [ rust-bin . cargo rust-bin . rustfmt ] }
22
22
'' ;
23
23
} ;
24
24
in
Original file line number Diff line number Diff line change 10
10
} ;
11
11
cargoArtifacts = craneLib . buildDepsOnly commonArgs ;
12
12
13
+ rust-bin = pkgs . rust-bin . stable . latest ;
14
+
13
15
in
14
16
{
15
17
devShells . "dev-${ crateName } -rust" = craneLib . devShell {
16
18
checks = self' . checks ;
17
- buildInputs = [ pkgs . rust-analyzer ] ;
19
+ buildInputs = [ rust-bin . rust-analyzer ] ;
18
20
} ;
19
21
20
- packages . "${ crateName } -rust" = craneLib . buildPackage ( commonArgs // { inherit cargoArtifacts ; doTest = false ; } ) ;
22
+ packages . "${ crateName } -rust" = craneLib . buildPackage ( commonArgs // {
23
+ inherit cargoArtifacts ;
24
+ doTest = false ;
25
+ } ) ;
21
26
22
- checks . "${ crateName } -rust-test" = craneLib . cargoNextest ( commonArgs // { inherit cargoArtifacts ; } ) ;
27
+ checks . "${ crateName } -rust-test" = craneLib . cargoNextest ( commonArgs // {
28
+ inherit cargoArtifacts ;
29
+ } ) ;
23
30
24
- checks . "${ crateName } -rust-clippy" = craneLib . cargoClippy ( commonArgs // { inherit cargoArtifacts ; } ) ;
31
+ checks . "${ crateName } -rust-clippy" = craneLib . cargoClippy ( commonArgs // {
32
+ inherit cargoArtifacts ;
33
+ } ) ;
25
34
} ;
26
35
27
36
}
You can’t perform that action at this time.
0 commit comments