smartmontools: fix missing sed w/o enableMail
Fixes #185095. Added gnused to smartmontools regardless of `enableMail`. The previous fix only works when `enableMail = true`. Also fixing this while I'm at it: ``` warning: String 'configureFlags' is deprecated and will be removed in release 23.05. Please use a list of strings. ```
This commit is contained in:
parent
055ab526bd
commit
58e0d95c3a
|
@ -18,6 +18,7 @@ let
|
|||
sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI=";
|
||||
name = "smartmontools-drivedb.h";
|
||||
};
|
||||
scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optional enableMail [ inetutils mailutils ]);
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||
cp -v ${driverdb} drivedb.h
|
||||
'';
|
||||
|
||||
configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ gnused inetutils mailutils ]}";
|
||||
configureFlags = [ "--with-scriptpath=${scriptPath}" ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
|
||||
|
|
Loading…
Reference in a new issue