From: Bryan English Date: Wed, 28 Jan 2026 04:50:38 +0000 (-0500) Subject: add cross-compiling to flake X-Git-Url: https://rethought.computer/gitweb//gitweb//git?a=commitdiff_plain;h=782d6b7e3dfe73c9b96acc929f7d3102154c8607;p=sorel-lang.git add cross-compiling to flake --- 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 = [