From 43052306ac871786ff17a5e62d04356737a4eea5 Mon Sep 17 00:00:00 2001 From: Bjørn Forsman Date: Tue, 29 Nov 2022 15:27:47 +0100 Subject: 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 --- pkgs/tools/system/smartmontools/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit 1.4.1