From fa9400f16f9737ebb6cd1aec3a534a645db23fc7 Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Sun, 19 Mar 2017 14:21:29 -0700 Subject: [PATCH] htmldoc: use stdenv.lib.optional instead of stdenv.lib.enable --- pkgs/tools/typesetting/htmldoc/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix index 0cd1343dd4b..b9d5407c68d 100644 --- a/pkgs/tools/typesetting/htmldoc/default.nix +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -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";