htmldoc: fix darwin build (#178725)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by Chen Sandro and committed by GitHub ac475518 241a178e

+12 -2
+12 -2
pkgs/tools/typesetting/htmldoc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, zlib, libpng, libjpeg, SystemConfiguration, Foundation, pkg-config }: 1 + { lib, stdenv, testers, fetchFromGitHub, zlib, libpng, libjpeg, SystemConfiguration, Foundation, pkg-config, htmldoc }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "htmldoc"; ··· 14 14 buildInputs = [ zlib libpng libjpeg ] 15 15 ++ lib.optionals stdenv.isDarwin [ Foundation SystemConfiguration ]; 16 16 17 + # do not generate universal binary on Darwin 18 + # because it is not supported by Nix's clang 19 + postPatch = '' 20 + substituteInPlace configure --replace "-arch x86_64 -arch arm64" "" 21 + ''; 22 + 23 + passthru.tests = testers.testVersion { 24 + package = htmldoc; 25 + command = "htmldoc --version"; 26 + }; 27 + 17 28 meta = with lib; { 18 - broken = stdenv.isDarwin; 19 29 description = "Converts HTML files to PostScript and PDF"; 20 30 homepage = "https://michaelrsweet.github.io/htmldoc"; 21 31 changelog = "https://github.com/michaelrsweet/htmldoc/releases/tag/v${version}";