diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-11-29 15:27:47 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-11-30 11:44:09 +0100 |
commit | 8fddf55c8fe89e184c412c76c0a6769007f4518f (patch) | |
tree | 19397c822a94714758e8591a6404667da543b308 | |
parent | 2620d645de08edf0f84b51447fc857416d07c41c (diff) |
smartmontools: add hostname to runtime closure
This makes smartd notifications contain the hostname instead of "unknown". Total runtime closure size: Before: 46.1 MiB After: 46.7 MiB (cherry picked from commit c1e51d4b28e91eb74b62fa3a0386fde0b69a6683)
-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 d7bc0a2cb829e..c1749030d6dde 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -4,6 +4,7 @@ , autoreconfHook , enableMail ? false , gnused +, hostname , mailutils , inetutils , IOKit @@ -18,7 +19,7 @@ let sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; name = "smartmontools-drivedb.h"; }; - scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optionals enableMail [ inetutils mailutils ]); + scriptPath = lib.makeBinPath ([ gnused hostname ] ++ lib.optionals enableMail [ inetutils mailutils ]); in stdenv.mkDerivation rec { |