!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

237 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v69 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@doge.2:matrix.orgdoge.2Download configuration.nix01:09:58
@doge.2:matrix.orgdoge.2Redacted or Malformed Event01:09:58
@doge.2:matrix.orgdoge.2Download flake.nix01:10:17
@doge.2:matrix.orgdoge.2i uploaded my configuration and flake if it helps01:10:28
@thefossguy:matrix.orgPratham Patel (you can mention me)There is no first party binary cache at the moment01:12:03
@doge.2:matrix.orgdoge.2is everything in my configuration and flake correct however?01:44:12
@thefossguy:matrix.orgPratham Patel (you can mention me)Can you share a GitHub/GitLab link? My phone says .nix files are binary lol03:49:51
@thefossguy:matrix.orgPratham Patel (you can mention me) You might want to replace the lib.mkForce with a lib.mkBefore under nix.settings in your configuration.nix. 06:12:54
@thefossguy:matrix.orgPratham Patel (you can mention me)Also, you're using the wrong nixpkgs url06:13:47
@thefossguy:matrix.orgPratham Patel (you can mention me)the cache can only be used if you point your nixpkgs to either misuzu's nixpkgs fork for riscv or Nick Cao's fork of nixkpgs for riscv06:14:18
@thefossguy:matrix.orgPratham Patel (you can mention me)otherwise, you're trying to find the output of nixos/nixpkgs in misuzu's and Nick Cao's binary cache, which won't be there06:15:02
@thefossguy:matrix.orgPratham Patel (you can mention me)On the topic of a binary cache for riscv, other than "we don't have [funding for] powerful enough hardware available," is there anything else that needs to be ironed out before we start searching for powerful riscv hardware to put in hydra06:16:26
@thefossguy:matrix.orgPratham Patel (you can mention me) * On the topic of a binary cache for riscv, other than "we don't have [funding for] powerful enough hardware available," is there anything else that needs to be ironed out before we start searching for powerful riscv hardware to put in hydra? 06:16:34
@alex:tunstall.xyzAlexImportantly, doesn't the hardware also need to be reliable?06:17:21
@thefossguy:matrix.orgPratham Patel (you can mention me)I have like 5 coupons for Oasis (when it gets out) which gives a 50% discount. I can give 4 or all of them to the nixos foundation.06:17:46
@thefossguy:matrix.orgPratham Patel (you can mention me) Yes. But what I actually meant to ask is, "Are we at a stage where the only obstacle for building riscv binaries in hydra is the unavailability of powerful+reliable hardware?" 06:19:05
@alex:tunstall.xyzAlex

Right. We already know from experimenting that most of the important packages build.

Is there precedent of running Hydra against a platform with no official support? (maybe aarch64 did this at some point?)

06:21:05
@thefossguy:matrix.orgPratham Patel (you can mention me) One thing that I know of the top of my head is that the entirety of stdenv doesn't feel ready. Like stdenv.isRiscV64 is missing but stdenv.targetPlatform.isRiscv64 and stdenv.hostPlatform.isRiscv64 exist. 06:23:24
* @thefossguy:matrix.orgPratham Patel (you can mention me) is afk for a while06:23:27
@thefossguy:matrix.orgPratham Patel (you can mention me)
In reply to @alex:tunstall.xyz

Right. We already know from experimenting that most of the important packages build.

Is there precedent of running Hydra against a platform with no official support? (maybe aarch64 did this at some point?)

When we're ready, we need to bootstrap with devtools, binutils and kernel for hydra to run on top of. Basically a bootstrap from scratch because it's natively compiled this time.
06:59:27
@alex:tunstall.xyzAlex
In reply to @thefossguy:matrix.org
When we're ready, we need to bootstrap with devtools, binutils and kernel for hydra to run on top of. Basically a bootstrap from scratch because it's natively compiled this time.
Does nix have a RISC-V target yet? Last I checked it didn't, and booting Nix natively from e.g. Debian seems like the right place to start a clean bootstrap.
07:01:35
@rosscomputerguy:matrix.orgTristan Ross Like the nix package itself? 07:02:45
@rosscomputerguy:matrix.orgTristan RossNixpkgs itself supports RISC-V07:02:59
@rosscomputerguy:matrix.orgTristan RossAfaict, the nix package doesn't have RISC-V on the search mentioned.07:03:20
@rosscomputerguy:matrix.orgTristan Ross Oh, search filters out systems the search itself doesn't "recognize" it seems. The nix package has platforms.unix. 07:04:58
@alex:tunstall.xyzAlexYes. It's built from a flake IIRC and lacked riscv64 as a target when I checked over a year ago.07:09:58
@thefossguy:matrix.orgPratham Patel (you can mention me)I'll try building nix with qemu-binfmt on my end and get back when it's done and/or fails.07:37:59
@thefossguy:matrix.orgPratham Patel (you can mention me)This will take some days given that it's building gcc, linux-headers, curl, cmake, rustc, curl and what not :D07:39:13
@thefossguy:matrix.orgPratham Patel (you can mention me) I wonder if we can bootstrap a minimal nix. 07:39:31
@alex:tunstall.xyzAlex
In reply to @thefossguy:matrix.org
I'll try building nix with qemu-binfmt on my end and get back when it's done and/or fails.
If you mean native Nix via Nixpkgs, that works. NixOS requires it.
07:59:14

Show newer messages


Back to Room ListRoom Version: 10