@@ -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
@@ -23,15 +22,17 @@ in stdenv.mkDerivation rec {
2322 sha256 = "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw";
2423 };
2524
26− patches = [ ./smartmontools.patch ];
25+ patches = [
26+ # fixes darwin build
27+ ./smartmontools.patch
28+ ];
2729 postPatch = "cp -v ${driverdb} drivedb.h";
2830
29− configureFlags = [
30− "--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
31− ];
31+ configureFlags = lib.optional enableMail
32+ "--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
3233
3334 nativeBuildInputs = [ autoreconfHook ];
34− buildInputs = [] ++ lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
35+ buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
3536 enableParallelBuilding = true;
3637
3738 meta = with lib; {