Fix flake.nix outside of Linux (#5056)

This commit is contained in:
PgBiel 2024-09-27 12:48:12 -03:00 committed by GitHub
parent 7262ef3c74
commit 022f34c43a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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