diff --git a/pkgs/by-name/li/libvpx/package.nix b/pkgs/by-name/li/libvpx/package.nix index 41cc90a17954..dc33fa0bef67 100644 --- a/pkgs/by-name/li/libvpx/package.nix +++ b/pkgs/by-name/li/libvpx/package.nix @@ -99,10 +99,18 @@ let isGeneric = (stdenv.hostPlatform.isPower && stdenv.hostPlatform.isLittleEndian) || stdenv.hostPlatform.parsed.cpu.name == "armv6l" + || stdenv.hostPlatform.isLoongArch64 || stdenv.hostPlatform.isRiscV; target = - if (stdenv.hostPlatform.isBSD || stdenv.hostPlatform != stdenv.buildPlatform) then + if + ( + stdenv.hostPlatform.isBSD + || stdenv.hostPlatform != stdenv.buildPlatform + # https://issues.chromium.org/issues/359039635 + || stdenv.hostPlatform.isLoongArch64 + ) + then (if isGeneric then "generic-gnu" else "${cpu}-${kernel}-gcc") else null;