Merge pull request #122478 from hmenke/zfs

Fix ofborg evaluation failure for zfs with unsupported kernels
This commit is contained in:
Robin Gloster
2021-05-10 21:26:49 -05:00
committed by GitHub

View File

@@ -182,13 +182,9 @@ let
license = licenses.cddl;
platforms = platforms.linux;
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
broken = if
buildKernel && (kernelCompatible != null) && !kernelCompatible
then builtins.trace ''
Linux v${kernel.version} is not yet supported by zfsonlinux v${version}.
${lib.optionalString (!isUnstable) "Try zfsUnstable or set the NixOS option boot.zfs.enableUnstable."}
'' true
else false;
# If your Linux kernel version is not yet supported by zfs, try zfsUnstable.
# On NixOS set the option boot.zfs.enableUnstable.
broken = buildKernel && (kernelCompatible != null) && !kernelCompatible;
};
};
in {