]> rethought.computer Git - sorel-lang.git/commitdiff
add cross-compiling to flake keep/782d6b7e3dfe73c9b96acc929f7d3102154c8607
authorBryan English <bryan@rethought.computer>
Wed, 28 Jan 2026 04:50:38 +0000 (23:50 -0500)
committerBryan English <bryan@rethought.computer>
Tue, 10 Feb 2026 04:08:54 +0000 (04:08 +0000)
hylo-lang/flake.nix

index 550936fd79bd250bc9c1105e64d22ee54c9158bd..01bd2a5bf6c56de2c5c65983e52856d0d9d3c467 100644 (file)
@@ -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 = [