Merge pull request #242019 from fgaz/nix/riscv-no-docs

nix: disable documentation on risc-v
This commit is contained in:
Francesco Gazzetta 2023-08-09 12:15:50 +02:00 committed by GitHub
commit e9297c8161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,13 @@ in
, util-linuxMinimal
, xz
, enableDocumentation ? !atLeast24 || stdenv.hostPlatform == stdenv.buildPlatform
, enableDocumentation ? !atLeast24 || (
(stdenv.hostPlatform == stdenv.buildPlatform) &&
# mdbook errors out on risc-v due to a rustc bug
# https://github.com/NixOS/nixpkgs/pull/242019
# https://github.com/rust-lang/rust/issues/114473
!stdenv.buildPlatform.isRiscV
)
, enableStatic ? stdenv.hostPlatform.isStatic
, withAWS ? !enableStatic && (stdenv.isLinux || stdenv.isDarwin), aws-sdk-cpp
, withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp, libseccomp