From 7d1867e864a05019e0e7699da955b58bfe98c462 Mon Sep 17 00:00:00 2001 From: Michael Hanley Date: Mon, 15 Aug 2022 11:32:40 -0400 Subject: [PATCH] smartmontools: fix missing sed Fixes #185095. Added `gnused` to `smartmontools`. `/etc/smartd_warning.sh` requires `sed` to be in the path. Previously failing with: ``` Test of /nix/store/134ckj3riid6ss5iy91b6b14bqyi7qf3-smartd-notify.sh to produced unexpected output (118 bytes) to STDOUT/STDERR: /nix/store/hhfr3ih96hzgxhhmjxbns726qx6mfff1-smartmontools-7.3/etc/smartd_warning.sh: line 125: sed: command not found Test of /nix/store/134ckj3riid6ss5iy91b6b14bqyi7qf3-smartd-notify.sh to : failed (32-bit/8-bit exit status: 32512/127) ``` --- 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 18dc89a8680..987ede77747 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -3,6 +3,7 @@ , fetchurl , autoreconfHook , enableMail ? false +, gnused , mailutils , inetutils , IOKit @@ -36,7 +37,7 @@ stdenv.mkDerivation rec { cp -v ${driverdb} drivedb.h ''; - configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}"; + configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ gnused inetutils mailutils ]}"; nativeBuildInputs = [ autoreconfHook ]; buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];