diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2021-01-13 23:40:08 -0800 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2021-02-06 22:03:59 -0800 |
commit | a206194b4ec06da05f08c9b02eab4f574498df6b (patch) | |
tree | a0240526ff94c56d231a31fc06365f78059a9b05 | |
parent | 370df31f1cacdac2f78072a30911fef7a81fb274 (diff) | |
download | nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar.gz nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar.bz2 nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar.lz nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar.xz nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.tar.zst nixpkgs-a206194b4ec06da05f08c9b02eab4f574498df6b.zip |
smartmontools: make mail support optional
It's enabled by default since that's how it was before this change.
-rw-r--r-- | pkgs/tools/system/smartmontools/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 9eaf00b537a..954c9eb4110 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchurl, autoreconfHook -, mailutils, inetutils +, mailutils, enableMail ? true +, inetutils , IOKit, ApplicationServices }: let @@ -26,7 +27,7 @@ in stdenv.mkDerivation rec { postPatch = "cp -v ${driverdb} drivedb.h"; configureFlags = [ - "--with-scriptpath=${lib.makeBinPath [ mailutils inetutils ]}" + "--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}" ]; nativeBuildInputs = [ autoreconfHook ]; |