!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

214 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux 67 Servers

Load older messages


SenderMessageTime
11 Apr 2025
@michal:tar.blackMichal Trying to bootstrap NixOS on my VisionFive2, is there, like, any way to do so right now? 😅 it seems even if i strip configuration.nix of everything except the hostname declaration it still gets stuck on not being able to bootstrap GHC 07:29:41
@dramforever:matrix.orgdramforeverwhat have you tried? did you try this? https://github.com/NixOS/nixos-hardware/tree/master/starfive/visionfive/v207:37:11
@dramforever:matrix.orgdramforeveractually what do you mean by "bootstrap NixOS"07:37:32
@alex:tunstall.xyzAlex
In reply to @michal:tar.black
Trying to bootstrap NixOS on my VisionFive2, is there, like, any way to do so right now? 😅 it seems even if i strip configuration.nix of everything except the hostname declaration it still gets stuck on not being able to bootstrap GHC
Do you actually care about having Haskell packages or do you just want minimal system?
07:38:33
@michal:tar.blackMichalSorry to be clearer by Bootstrap I suppose I just mean... edit the default config at all07:38:39
@michal:tar.blackMichalI did Haskell in college, I'd rather stay away from it as far as possible if I have the choice 🤣07:39:09
@dramforever:matrix.orgdramforeverit would help if you can share the config07:39:53
@michal:tar.blackMichalSure, one sec07:40:06
@alex:tunstall.xyzAlex
In reply to @michal:tar.black
I did Haskell in college, I'd rather stay away from it as far as possible if I have the choice 🤣

Then you just need to disable the use of ShellCheck to check shell scripts.

@fgaz may be able to offer detailed instructions.

07:41:40
@dramforever:matrix.orgdramforeveroh wait i get it, you're trying to native build stuff?07:42:34
@michal:tar.blackMichalyes that's right07:42:43
@dramforever:matrix.orgdramforeveryeah it's probably just shellcheck07:43:04
@michal:tar.blackMichalI'll assume entirely disabling shellcheck is a lot easier said than done07:45:24
@dramforever:matrix.orgdramforever it shouldn't be, there's a check inside writeShellApplication for that 07:46:24
@dramforever:matrix.orgdramforever do you still get it if you don't bring in firmware.nix from nixos-hardware 07:47:18
@dramforever:matrix.orgdramforeveri don't remember having this problem...07:47:28
@michal:tar.blackMichalYep07:47:37
@michal:tar.blackMichalOut of morbid curiosity I genuinely blanked out everything except the filesystem declarations in hardware-configuration.nix and just the hostname in configruation.nix and somehow it still complained about it07:48:14
@michal:tar.blackMichalThe problematic thing for me is it only complains if I have the RISC-V binary caches enabled- otherwise it goes straight ahead to trying to build perl (which wouldn't exactly be a short build)07:49:29
@alex:tunstall.xyzAlex
In reply to @dramforever:matrix.org
i don't remember having this problem...

Possibly because you're on a version after fgaz changed nixpkgs to disable the check when GHC is not available on the platform but before my changes to GHC for full cross-compilation support.

I had to break fgaz's fix otherwise you couldn't cross compile to platforms not already available as bindists from upstream.

07:51:03
@alex:tunstall.xyzAlex
In reply to @michal:tar.black
Out of morbid curiosity I genuinely blanked out everything except the filesystem declarations in hardware-configuration.nix and just the hostname in configruation.nix and somehow it still complained about it
Default empty configuration won't work.
07:52:04
@dramforever:matrix.orgdramforever

you can bring in an overlay (completely untested)

(final: prev: {
  writeShellApplication = args:
    let
      replace =
        if (args.checkPhase or null) == null
        then
          {
            checkPhase = ''
              runHook preCheck
              runHook postCheck
            '';
          }
        else
          {};
    in
      prev.writeShellApplication (args // replace);
})
07:52:45
@dramforever:matrix.orgdramforeverthe "easier said than done" you mentioned before07:53:10
@dramforever:matrix.orgdramforeverthis is pretty hacky though07:54:03
@dramforever:matrix.orgdramforeveror you can see if you can update your nixpkgs to after the ghc availability check07:54:30
@michal:tar.blackMichal Yeah, I was ideally hoping to get a simple configuration.nix going with networkmanager and openssh at the very least so i can reliably connect to wifi and ssh in- that way I can port the config to my flake and deploy from there, which would let me pin to a specific version 07:56:26
@dramforever:matrix.orgdramforeverit would be far easier to cross compile it on the host anyway...07:56:59
@michal:tar.blackMichalYeah at the end of the day that might just be what I have to do07:57:27
@michal:tar.blackMichalI was hoping to be able to deploy from the machine directly and use a binary cache to speed things up, but this way I assume I'll probably have to build an SD image each time?07:57:59
@michal:tar.blackMichal(Since I'm using the SD card for now, that is)07:58:08

Show newer messages


Back to Room ListRoom Version: 10