smartmontools: fix missing hostname in notifications
This properly registers some missing dependencies of smartd_warning.sh.
This commit is contained in:
		
							parent
							
								
									feab14d327
								
							
						
					
					
						commit
						f1922cdbdc
					
				@ -239,11 +239,7 @@ in
 | 
			
		||||
 | 
			
		||||
    systemd.services.smartd = {
 | 
			
		||||
      description = "S.M.A.R.T. Daemon";
 | 
			
		||||
 | 
			
		||||
      wantedBy = [ "multi-user.target" ];
 | 
			
		||||
 | 
			
		||||
      path = [ pkgs.nettools ]; # for hostname and dnsdomanname calls in smartd
 | 
			
		||||
 | 
			
		||||
      serviceConfig.ExecStart = "${pkgs.smartmontools}/sbin/smartd ${lib.concatStringsSep " " cfg.extraOptions} --no-fork --configfile=${smartdConf}";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user