diff options
author | Michael Hanley <me@hanleym.com> | 2022-08-28 08:21:33 -0400 |
---|---|---|
committer | Michael Hanley <me@hanleym.com> | 2022-08-28 08:25:53 -0400 |
commit | 26afe025c78608b9671135dbdf5286e5c819a8f5 (patch) | |
tree | c95e97037792350905ec412d96d8b857af8732e8 /pkgs/tools/system/smartmontools | |
parent | b6966e5ccc7d84f30715f36dcef90560c0fb2b82 (diff) |
smartmontools: fix lib.optional -> lib.optionals
Fixes the following errror when `enableMail=true`: ``` error: cannot coerce a list to a string ``` See: https://discourse.nixos.org/t/lib-optional-considered-harmful/7081
Diffstat (limited to 'pkgs/tools/system/smartmontools')
-rw-r--r-- | pkgs/tools/system/smartmontools/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 10ec02369dc82..d7bc0a2cb829e 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -18,7 +18,7 @@ let sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; name = "smartmontools-drivedb.h"; }; - scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optional enableMail [ inetutils mailutils ]); + scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optionals enableMail [ inetutils mailutils ]); in stdenv.mkDerivation rec { |