| 11 Apr 2025 |
Michal | 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 | what have you tried? did you try this? https://github.com/NixOS/nixos-hardware/tree/master/starfive/visionfive/v2 | 07:37:11 |
dramforever | actually what do you mean by "bootstrap NixOS" | 07:37:32 |
Alex | 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 | Sorry to be clearer by Bootstrap I suppose I just mean... edit the default config at all | 07:38:39 |
Michal | I did Haskell in college, I'd rather stay away from it as far as possible if I have the choice 🤣 | 07:39:09 |
dramforever | it would help if you can share the config | 07:39:53 |
Michal | Sure, one sec | 07:40:06 |
Alex | 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 | oh wait i get it, you're trying to native build stuff? | 07:42:34 |
Michal | yes that's right | 07:42:43 |
dramforever | yeah it's probably just shellcheck | 07:43:04 |
Michal | I'll assume entirely disabling shellcheck is a lot easier said than done | 07:45:24 |
dramforever | it shouldn't be, there's a check inside writeShellApplication for that | 07:46:24 |
dramforever | do you still get it if you don't bring in firmware.nix from nixos-hardware | 07:47:18 |
dramforever | i don't remember having this problem... | 07:47:28 |
Michal | Yep | 07:47:37 |
Michal | 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 | 07:48:14 |
Michal | The 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 | 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 | 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 | 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 | the "easier said than done" you mentioned before | 07:53:10 |
dramforever | this is pretty hacky though | 07:54:03 |
dramforever | or you can see if you can update your nixpkgs to after the ghc availability check | 07:54:30 |
Michal | 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 | it would be far easier to cross compile it on the host anyway... | 07:56:59 |
Michal | Yeah at the end of the day that might just be what I have to do | 07:57:27 |
Michal | I 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 | (Since I'm using the SD card for now, that is) | 07:58:08 |