diff --git a/lib/systems/for-meta.nix b/lib/systems/for-meta.nix index 63f24b465355..43c0195c3f18 100644 --- a/lib/systems/for-meta.nix +++ b/lib/systems/for-meta.nix @@ -13,6 +13,7 @@ in rec { i686 = [ patterns.isi686 ]; x86_64 = [ patterns.isx86_64 ]; mips = [ patterns.isMips ]; + riscv = [ patterns.isRiscV ]; cygwin = [ patterns.isCygwin ]; darwin = [ patterns.isDarwin ]; diff --git a/pkgs/misc/riscv-pk/default.nix b/pkgs/misc/riscv-pk/default.nix index d4705dd9dd77..e724869b235c 100644 --- a/pkgs/misc/riscv-pk/default.nix +++ b/pkgs/misc/riscv-pk/default.nix @@ -36,7 +36,7 @@ in stdenv.mkDerivation { description = "RISC-V Proxy Kernel and Bootloader."; homepage = https://github.com/riscv/riscv-pk; license = stdenv.lib.licenses.bsd3; - platforms = [ "riscv-linux" ]; + platforms = stdenv.lib.platforms.riscv; maintainers = [ stdenv.lib.maintainers.shlevy ]; }; }