diff options
author | Michael Hanley <me@hanleym.com> | 2022-08-23 11:48:41 -0400 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-08-23 19:55:16 +0200 |
commit | 58e0d95c3a80e29b657cfce1dbea182c13ae6451 (patch) | |
tree | b9945bb04fe842a308c05ecf16ddfe6aa9d9e68c /pkgs/tools/system/smartmontools | |
parent | 055ab526bd862cafcf2f9613b64469cd92c3c448 (diff) |
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. ```
Diffstat (limited to 'pkgs/tools/system/smartmontools')
-rw-r--r-- | pkgs/tools/system/smartmontools/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 987ede77747fc..10ec02369dc82 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -18,6 +18,7 @@ let sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; name = "smartmontools-drivedb.h"; }; + scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optional enableMail [ inetutils mailutils ]); in stdenv.mkDerivation rec { @@ -37,7 +38,7 @@ stdenv.mkDerivation rec { cp -v ${driverdb} drivedb.h ''; - configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ gnused inetutils mailutils ]}"; + configureFlags = [ "--with-scriptpath=${scriptPath}" ]; nativeBuildInputs = [ autoreconfHook ]; buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ]; |