htmldoc: use stdenv.lib.optional instead of stdenv.lib.enable
This commit is contained in:
parent
1b10483b5e
commit
fa9400f16f
@ -14,8 +14,9 @@ stdenv.mkDerivation rec {
|
|||||||
+ "/release-${version}/htmldoc-${version}-source.tar.gz";
|
+ "/release-${version}/htmldoc-${version}-source.tar.gz";
|
||||||
sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
|
sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
|
||||||
};
|
};
|
||||||
buildInputs =
|
buildInputs = with stdenv;
|
||||||
stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation];
|
lib.optional isDarwin SystemConfiguration
|
||||||
|
++ lib.optional isDarwin Foundation;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Converts HTML files to PostScript and PDF";
|
description = "Converts HTML files to PostScript and PDF";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user