summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2020-08-16 20:48:03 +0200
committerpacien <pacien.trangirard@pacien.net>2020-08-16 20:48:03 +0200
commitf1922cdbdc608b1f1f85a1d80310b54e89d0e9f3 (patch)
treec5c389c1dfb4a10165750ac832850933a910159e /pkgs/tools/system
parentfeab14d327e6b3b8c6bf9298b522b9b5719db3e0 (diff)
downloadnixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar.gz
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar.bz2
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar.lz
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar.xz
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.tar.zst
nixpkgs-f1922cdbdc608b1f1f85a1d80310b54e89d0e9f3.zip
smartmontools: fix missing hostname in notifications
This properly registers some missing dependencies of smartd_warning.sh.
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/smartmontools/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix
index f4941df8ebd..5d9196fcc16 100644
--- a/pkgs/tools/system/smartmontools/default.nix
+++ b/pkgs/tools/system/smartmontools/default.nix
@@ -1,4 +1,5 @@
 { stdenv, fetchurl, autoreconfHook
+, mailutils, inetutils
 , IOKit ? null , ApplicationServices ? null }:
 
 let
@@ -24,6 +25,10 @@ in stdenv.mkDerivation rec {
   patches = [ ./smartmontools.patch ];
   postPatch = "cp -v ${driverdb} drivedb.h";
 
+  configureFlags = [
+    "--with-scriptpath=${stdenv.lib.makeBinPath [ mailutils inetutils ]}"
+  ];
+
   nativeBuildInputs = [ autoreconfHook ];
   buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
   enableParallelBuilding = true;