File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 4949 pname = "tytanic" ;
5050 version = cargoToml . workspace . package . version ;
5151
52- rust-toolchain = ( fenix . packages . ${ system } . fromManifestFile rust-manifest ) . defaultToolchain ;
52+ rust-toolchain = fenix . packages . ${ system } . fromManifestFile rust-manifest ;
5353
5454 # Crane-based Nix flake configuration.
5555 # Based on https://github.com/ipetkov/crane/blob/master/examples/trunk-workspace/flake.nix
56- craneLib = ( crane . mkLib pkgs ) . overrideToolchain rust-toolchain ;
56+ craneLib = ( crane . mkLib pkgs ) . overrideToolchain rust-toolchain . defaultToolchain ;
5757
5858 # Tytanic files to include in the derivation.
5959 # Here we include Rust files.
145145 checks = self' . checks ;
146146 inputsFrom = [ tytanic ] ;
147147
148- buildInputs = with pkgs ; [
149- rust-analyzer
148+ buildInputs = [
149+ rust-toolchain . rust-analyzer
150+ rust-toolchain . rust-src
150151 ] ;
152+
153+ RUST_SRC_PATH = "${ rust-toolchain . rust-src } /lib/rustlib/src/rust/library" ;
151154 } ;
152155 } ;
153156 } ;
You can’t perform that action at this time.
0 commit comments