lol

smartmontools: fix missing sed w/o enableMail

Fixes #185095.

Added gnused to smartmontools regardless of `enableMail`.

The previous fix only works when `enableMail = true`.

Also fixing this while I'm at it:
```
warning: String 'configureFlags' is deprecated and will be removed in release 23.05. Please use a list of strings.
```

authored by

Michael Hanley and committed by
Bjørn Forsman
58e0d95c 055ab526

+2 -1
+2 -1
pkgs/tools/system/smartmontools/default.nix
··· 18 18 sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; 19 19 name = "smartmontools-drivedb.h"; 20 20 }; 21 + scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optional enableMail [ inetutils mailutils ]); 21 22 22 23 in 23 24 stdenv.mkDerivation rec { ··· 37 38 cp -v ${driverdb} drivedb.h 38 39 ''; 39 40 40 - configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ gnused inetutils mailutils ]}"; 41 + configureFlags = [ "--with-scriptpath=${scriptPath}" ]; 41 42 42 43 nativeBuildInputs = [ autoreconfHook ]; 43 44 buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];