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
This commit is contained in:
Bjørn Forsman 2022-11-29 15:27:47 +01:00
parent 3d340aedeb
commit 43052306ac

View file

@ -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 {