zfs: disable smartmontools mail functionality

This commit is contained in:
Cole Helbling
2021-02-06 22:04:00 -08:00
parent a206194b4e
commit 1ed5b6a285
2 changed files with 27 additions and 10 deletions
+16 -9
View File
@@ -8,8 +8,8 @@
, libtirpc
, nfs-utils
, gawk, gnugrep, gnused, systemd
, smartmontools, sysstat, sudo
, pkg-config
, smartmontools, enableMail ? false
, sysstat, sudo, pkg-config
# Kernel dependencies
, kernel ? null
@@ -18,6 +18,8 @@
with lib;
let
smartmon = smartmontools.override { inherit enableMail; };
buildKernel = any (n: n == configFile) [ "kernel" "all" ];
buildUser = any (n: n == configFile) [ "user" "all" ];
@@ -148,7 +150,7 @@ let
'';
postFixup = let
path = "PATH=${makeBinPath [ coreutils gawk gnused gnugrep util-linux smartmontools sysstat ]}:$PATH";
path = "PATH=${makeBinPath [ coreutils gawk gnused gnugrep util-linux smartmon sysstat ]}:$PATH";
in ''
for i in $out/libexec/zfs/zpool.d/*; do
sed -i '2i${path}' $i
@@ -157,12 +159,17 @@ let
outputs = [ "out" ] ++ optionals buildUser [ "lib" "dev" ];
passthru.tests = if isUnstable then
[ nixosTests.zfs.unstable ]
else [
nixosTests.zfs.installer
nixosTests.zfs.stable
];
passthru = {
inherit enableMail;
tests =
if isUnstable then [
nixosTests.zfs.unstable
] else [
nixosTests.zfs.installer
nixosTests.zfs.stable
];
};
meta = {
description = "ZFS Filesystem Linux Kernel module";