Merge pull request #113303 from midchildan/fix/smartmontools
smartmontools: drop mailutils dependency by default
This commit is contained in:
commit
e62d2b750c
|
@ -1,6 +1,5 @@
|
||||||
{ lib, stdenv, fetchurl, autoreconfHook
|
{ lib, stdenv, fetchurl, autoreconfHook
|
||||||
, mailutils, enableMail ? true
|
, enableMail ? false, mailutils, inetutils
|
||||||
, inetutils
|
|
||||||
, IOKit, ApplicationServices }:
|
, IOKit, ApplicationServices }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -21,15 +20,17 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw";
|
sha256 = "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./smartmontools.patch ];
|
patches = [
|
||||||
|
# fixes darwin build
|
||||||
|
./smartmontools.patch
|
||||||
|
];
|
||||||
postPatch = "cp -v ${driverdb} drivedb.h";
|
postPatch = "cp -v ${driverdb} drivedb.h";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = lib.optional enableMail
|
||||||
"--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
|
"--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [] ++ lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
|
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue