Merge pull request #113303 from midchildan/fix/smartmontools

smartmontools: drop mailutils dependency by default
This commit is contained in:
Bernardo Meurer 2021-08-09 21:15:55 +00:00 committed by GitHub
commit e62d2b750c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
{ lib, stdenv, fetchurl, autoreconfHook
, mailutils, enableMail ? true
, inetutils
, enableMail ? false, mailutils, inetutils
, IOKit, ApplicationServices }:
let
@ -21,15 +20,17 @@ in stdenv.mkDerivation rec {
sha256 = "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw";
};
patches = [ ./smartmontools.patch ];
patches = [
# fixes darwin build
./smartmontools.patch
];
postPatch = "cp -v ${driverdb} drivedb.h";
configureFlags = [
"--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
];
configureFlags = lib.optional enableMail
"--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [] ++ lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
enableParallelBuilding = true;
meta = with lib; {