mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix flake.nix outside of Linux (#5056)
This commit is contained in:
parent
7262ef3c74
commit
022f34c43a
@ -22,14 +22,14 @@
|
||||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
];
|
||||
|
||||
perSystem = { self', pkgs, lib, ... }:
|
||||
perSystem = { self', pkgs, lib, system, ... }:
|
||||
let
|
||||
cargoToml = lib.importTOML ./Cargo.toml;
|
||||
|
||||
pname = "typst";
|
||||
version = cargoToml.workspace.package.version;
|
||||
|
||||
rust-toolchain = (fenix.packages.x86_64-linux.fromManifestFile rust-manifest).defaultToolchain;
|
||||
rust-toolchain = (fenix.packages.${system}.fromManifestFile rust-manifest).defaultToolchain;
|
||||
|
||||
# Crane-based Nix flake configuration.
|
||||
# Based on https://github.com/ipetkov/crane/blob/master/examples/trunk-workspace/flake.nix
|
||||
|
Loading…
x
Reference in New Issue
Block a user