Merge pull request #109345 from cole-h/zfs-closure

Shrink the ZFS closure by making mail support optional
This commit is contained in:
Linus Heckemann
2021-02-10 23:04:24 +01:00
committed by GitHub
3 changed files with 54 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, autoreconfHook
, mailutils, inetutils
, mailutils, enableMail ? true
, inetutils
, IOKit, ApplicationServices }:
let
@@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
postPatch = "cp -v ${driverdb} drivedb.h";
configureFlags = [
"--with-scriptpath=${lib.makeBinPath [ mailutils inetutils ]}"
"--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
];
nativeBuildInputs = [ autoreconfHook ];