mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Merge f41cca8b0027cbd3bb66e93bf523ab9efeef2300 into 9b09146a6b5e936966ed7ee73bce9dd2df3810ae
This commit is contained in:
commit
1d9f00fef3
12
flake.nix
12
flake.nix
@ -29,7 +29,11 @@
|
||||
pname = "typst";
|
||||
version = cargoToml.workspace.package.version;
|
||||
|
||||
rust-toolchain = (fenix.packages.${system}.fromManifestFile rust-manifest).defaultToolchain;
|
||||
rust-toolchain = fenix.packages.${system}.combine [
|
||||
(fenix.packages.${system}.fromManifestFile
|
||||
rust-manifest).defaultToolchain
|
||||
(fenix.packages.${system}.fromManifestFile rust-manifest).rust-src
|
||||
];
|
||||
|
||||
# Crane-based Nix flake configuration.
|
||||
# Based on https://github.com/ipetkov/crane/blob/master/examples/trunk-workspace/flake.nix
|
||||
@ -127,6 +131,12 @@
|
||||
checks = self'.checks;
|
||||
inputsFrom = [ typst ];
|
||||
|
||||
# Set environment variables for rust-analyzer
|
||||
shellHook = ''
|
||||
export RUST_SRC_PATH="${rust-toolchain}/lib/rustlib/src/rust/library"
|
||||
export RUST_BACKTRACE=1
|
||||
'';
|
||||
|
||||
packages = [
|
||||
# A script for quickly running tests.
|
||||
# See https://github.com/typst/typst/blob/main/tests/README.md#making-an-alias
|
||||
|
Loading…
x
Reference in New Issue
Block a user