Use rust-analyzer from fenix toolchain in flake (#6826)
This commit is contained in:
parent
3d64f7b659
commit
64f0c12d0a
11
flake.nix
11
flake.nix
|
|
@ -46,11 +46,11 @@
|
||||||
pname = "typst";
|
pname = "typst";
|
||||||
version = cargoToml.workspace.package.version;
|
version = cargoToml.workspace.package.version;
|
||||||
|
|
||||||
rust-toolchain = (fenix.packages.${system}.fromManifestFile rust-manifest).defaultToolchain;
|
rust-toolchain = fenix.packages.${system}.fromManifestFile rust-manifest;
|
||||||
|
|
||||||
# Crane-based Nix flake configuration.
|
# Crane-based Nix flake configuration.
|
||||||
# Based on https://github.com/ipetkov/crane/blob/master/examples/trunk-workspace/flake.nix
|
# Based on https://github.com/ipetkov/crane/blob/master/examples/trunk-workspace/flake.nix
|
||||||
craneLib = (crane.mkLib pkgs).overrideToolchain rust-toolchain;
|
craneLib = (crane.mkLib pkgs).overrideToolchain rust-toolchain.defaultToolchain;
|
||||||
|
|
||||||
# Typst files to include in the derivation.
|
# Typst files to include in the derivation.
|
||||||
# Here we include Rust files, docs and tests.
|
# Here we include Rust files, docs and tests.
|
||||||
|
|
@ -150,10 +150,13 @@
|
||||||
checks = self'.checks;
|
checks = self'.checks;
|
||||||
inputsFrom = [ typst ];
|
inputsFrom = [ typst ];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = [
|
||||||
rust-analyzer
|
rust-toolchain.rust-analyzer
|
||||||
|
rust-toolchain.rust-src
|
||||||
];
|
];
|
||||||
|
|
||||||
|
RUST_SRC_PATH = "${rust-toolchain.rust-src}/lib/rustlib/src/rust/library";
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
# A script for quickly running tests.
|
# A script for quickly running tests.
|
||||||
# See https://github.com/typst/typst/blob/main/tests/README.md#making-an-alias
|
# See https://github.com/typst/typst/blob/main/tests/README.md#making-an-alias
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue