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
This commit is contained in:
parent
b6966e5ccc
commit
26afe025c7
|
@ -18,7 +18,7 @@ let
|
||||||
sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI=";
|
sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI=";
|
||||||
name = "smartmontools-drivedb.h";
|
name = "smartmontools-drivedb.h";
|
||||||
};
|
};
|
||||||
scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optional enableMail [ inetutils mailutils ]);
|
scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optionals enableMail [ inetutils mailutils ]);
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
Loading…
Reference in a new issue