Commit 8fddf55c authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

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)
parent 2620d645
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 {