@@ -1,6 +1,5 @@
11{ lib, stdenv, fetchurl, autoreconfHook
2−, mailutils, enableMail ? true
3−, inetutils
2+, enableMail ? false, mailutils, inetutils
43, IOKit, ApplicationServices }:
54
65let
@@ -21,15 +20,17 @@ in stdenv.mkDerivation rec {
2120 sha256 = "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw";
2221 };
2322
24− patches = [ ./smartmontools.patch ];
23+ patches = [
24+ # fixes darwin build
25+ ./smartmontools.patch
26+ ];
2527 postPatch = "cp -v ${driverdb} drivedb.h";
2628
27− configureFlags = [
28− "--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
29− ];
29+ configureFlags = lib.optional enableMail
30+ "--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
3031
3132 nativeBuildInputs = [ autoreconfHook ];
32− buildInputs = [] ++ lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
33+ buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
3334 enableParallelBuilding = true;
3435
3536 meta = with lib; {