From 022f34c43a2fb3084b93500163a601105ab582a4 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:48:12 -0300 Subject: [PATCH] Fix flake.nix outside of Linux (#5056) --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index bbfe50821..164a80381 100644 --- a/flake.nix +++ b/flake.nix @@ -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