| 5 Jun 2022 |
matthewcroughan - nix.how | j-k: Zhaofeng Li did you know that nix build nixpkgs#pkgsCross.riscv64.pkgsStatic.nix works? | 12:24:46 |
matthewcroughan - nix.how | not only cross compiling, but statically compiling too | 12:25:01 |
matthewcroughan - nix.how | * not only cross compiling, but statically linking too | 12:32:38 |
matthewcroughan - nix.how | I just the result to fufexan, he ran it on Fedora on the VisionFive board, it worked. | 12:35:44 |
fufexan | should've mentioned, I haven't run it on the board yet | 12:36:08 |
fufexan | I'm leaving for another city soon so it's packed rn | 12:36:36 |
matthewcroughan - nix.how | ah okay, so the screenshot you sent was through binfmt on an x86 box? | 12:36:38 |
fufexan | yes | 12:36:41 |
matthewcroughan - nix.how | If it doesn't work when it gets there then I'll be very surprised :P | 12:36:51 |
fufexan | I'll run it real quick to test | 12:36:51 |
fufexan |  Download image.png | 12:40:25 |
fufexan | sure enough, it works | 12:40:32 |
matthewcroughan - nix.how | The blog post I write this month, is going to be amazing. | 12:44:30 |
matthewcroughan - nix.how | Statically linking and cross compiling Nix itself for usage on any distribution for the VisionFive board is so simple, I'm just blown away. | 12:44:59 |
matthewcroughan - nix.how | Just that alone is such a good demonstration of Nix power. | 12:45:40 |
fufexan | sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
```how should I fix this?
| 18:16:41 |
fufexan | * sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
```how should I fix this?
| 18:16:50 |
fufexan | * sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
how should I fix this?
| 18:17:01 |
fufexan | fixed by adding export NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt | 18:45:46 |
fufexan |  Download image.png | 18:49:56 |
fufexan | all of this just to run btm 😄 | 18:50:03 |
fufexan |  Download image.png | 19:38:09 |
fufexan | umm, another weird issue. matthewcroughan - nix.how were you able to run anything with nix on the board? | 19:38:21 |
fufexan | I guess I'll have to try flashing zhaofengli's sdcard image and try to work with that | 19:38:55 |
comrandroxaos | https://www.clockworkpi.com/product-page/devterm-kit-r01
since we're talking aabout risc-v, i didn't know this was real until today | 20:30:47 |
fufexan | looks really cool but I can't imagine working on such a small screen | 21:42:00 |
fufexan | also, only 1GB ram, when my empty wm uses about 400mb 😄 | 21:42:34 |
| 6 Jun 2022 |
j-k | In reply to @matthewcroughan:defenestrate.it j-k: Zhaofeng Li did you know that nix build nixpkgs#pkgsCross.riscv64.pkgsStatic.nix works? nice | 10:40:48 |
j-k | I used the nix repo to build the release tar.gz so I'd get the installer script that sets up the systemd services and builder users for multi user install | 10:41:39 |
| 7 Jun 2022 |
| execat joined the room. | 18:22:05 |