Skip to content

NixOS on RISC-V #101651

@malte-v

Description

@malte-v

Issue description

Judging from the screenshot in #36187, @shlevy has already been successful in running some form of NixOS on RISC-V. I'd just like to know what the status of this is, as naively trying to build an ISO installer failed:

➜  nixos git:(master) ✗ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'nixos-21.03pre-git-riscv64-linux.iso' at /home/malte/repos/nixpkgs/nixos/lib/make-iso9660-image.nix:49:3:
while evaluating the attribute 'buildInputs' of the derivation 'xorriso-1.5.2' at /home/malte/repos/nixpkgs/pkgs/tools/cd-dvd/xorriso/default.nix:4:3:
while evaluating the attribute 'buildInputs' of the derivation 'libcdio-2.1.0' at /home/malte/repos/nixpkgs/pkgs/development/libraries/libcdio/default.nix:4:3:
while evaluating the attribute 'src' of the derivation 'libcddb-1.3.2' at /home/malte/repos/nixpkgs/pkgs/development/libraries/libcddb/default.nix:4:3:
while evaluating the attribute 'mirrorsFile' of the derivation 'libcddb-1.3.2.tar.bz2' at /home/malte/repos/nixpkgs/pkgs/build-support/fetchurl/default.nix:122:3:
while evaluating the attribute 'stdenv' of the derivation 'mirrors-list' at /home/malte/repos/nixpkgs/pkgs/build-support/fetchurl/default.nix:16:7:
while evaluating the attribute 'initialPath' of the derivation 'stdenv' at /home/malte/repos/nixpkgs/pkgs/stdenv/generic/default.nix:87:14:
while evaluating the attribute 'src' of the derivation 'xz-5.2.5' at /home/malte/repos/nixpkgs/pkgs/tools/compression/xz/default.nix:9:3:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'xz-5.2.5.tar.bz2' at /home/malte/repos/nixpkgs/pkgs/build-support/fetchurl/default.nix:122:3:
while evaluating the attribute 'configureFlags' of the derivation 'curl-7.72.0' at /home/malte/repos/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'openssl-1.1.1g' at /home/malte/repos/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
while evaluating the attribute 'disallowedReferences' of the derivation 'perl-5.32.0' at /home/malte/repos/nixpkgs/pkgs/development/interpreters/perl/default.nix:22:5:
while evaluating the derivation attribute 'name' at /home/malte/repos/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
cannot coerce null to a string, at /home/malte/repos/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:19

There seems to be some issue with Perl. I guess 306d5cd addressed this, but now it's broken again. I'm still pretty much a biginner to Nix(OS) and unfortunately have no idea how to fix it :( Maybe we could get NixOS on RISC-V running again? I don't know how much work it would be though, since #36187 got merged 2.5 years ago and a lot has happened since then.

Metadata

Metadata

Assignees

Labels

6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: exoticExotic hardware or software platform
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions