htmldoc: use stdenv.lib.optional instead of stdenv.lib.enable

This commit is contained in:
Shane Pearlman 2017-03-19 14:21:29 -07:00
parent 1b10483b5e
commit fa9400f16f

View File

@ -14,8 +14,9 @@ stdenv.mkDerivation rec {
+ "/release-${version}/htmldoc-${version}-source.tar.gz";
sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
};
buildInputs =
stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation];
buildInputs = with stdenv;
lib.optional isDarwin SystemConfiguration
++ lib.optional isDarwin Foundation;
meta = with stdenv.lib; {
description = "Converts HTML files to PostScript and PDF";