smartmontools: make mail support optional
It's enabled by default since that's how it was before this change.
This commit is contained in:
parent
370df31f1c
commit
a206194b4e
@ -1,5 +1,6 @@
|
|||||||
{ lib, stdenv, fetchurl, autoreconfHook
|
{ lib, stdenv, fetchurl, autoreconfHook
|
||||||
, mailutils, inetutils
|
, mailutils, enableMail ? true
|
||||||
|
, inetutils
|
||||||
, IOKit, ApplicationServices }:
|
, IOKit, ApplicationServices }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
|
|||||||
postPatch = "cp -v ${driverdb} drivedb.h";
|
postPatch = "cp -v ${driverdb} drivedb.h";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-scriptpath=${lib.makeBinPath [ mailutils inetutils ]}"
|
"--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
Loading…
Reference in New Issue
Block a user