diff --git a/pkgs/rosenpass.nix b/pkgs/rosenpass.nix index 802dbbf0..fabe0b39 100644 --- a/pkgs/rosenpass.nix +++ b/pkgs/rosenpass.nix @@ -3,7 +3,7 @@ stdenv, rustPlatform, cmake, - mandoc, + mandoc ? null, removeReferencesTo, bash, package ? "rosenpass", @@ -88,10 +88,13 @@ rustPlatform.buildRustPackage { nativeBuildInputs = [ stdenv.cc cmake # for oqs build in the oqs-sys crate - mandoc # for the built-in manual removeReferencesTo rustPlatform.bindgenHook # for C-bindings in the crypto libs - ]; + ] + ++ lib.lists.optional ( + lib.meta.availableOn stdenv.hostPlatform mandoc && !mandoc.meta.broken + ) mandoc # for the built-in manual + ; buildInputs = [ bash ]; hardeningDisable = lib.optional isStatic "fortify";