From 782d6b7e3dfe73c9b96acc929f7d3102154c8607 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Tue, 27 Jan 2026 23:50:38 -0500 Subject: [PATCH] add cross-compiling to flake --- hylo-lang/flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hylo-lang/flake.nix b/hylo-lang/flake.nix index 550936f..01bd2a5 100644 --- a/hylo-lang/flake.nix +++ b/hylo-lang/flake.nix @@ -7,7 +7,16 @@ outputs = {nixpkgs, ...}: let system = "x86_64-linux"; - pkgs = import nixpkgs { inherit system; }; + pkgs = import nixpkgs { + # uncomment the next bit to install cross-compiler toolchain + + # crossSystem = { + # config = "riscv64-unknown-linux-gnu"; + # # Or if you want to build against MUSL: + # # config = "riscv64-unknown-linux-musl"; + # }; + inherit system; + }; in { devShells.${system}.default = pkgs.mkShell { packages = [ -- 2.43.0