Merge pull request #122478 from hmenke/zfs
Fix ofborg evaluation failure for zfs with unsupported kernels
This commit is contained in:
commit
74399aadaf
@ -182,13 +182,9 @@ let
|
|||||||
license = licenses.cddl;
|
license = licenses.cddl;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
|
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
|
||||||
broken = if
|
# If your Linux kernel version is not yet supported by zfs, try zfsUnstable.
|
||||||
buildKernel && (kernelCompatible != null) && !kernelCompatible
|
# On NixOS set the option boot.zfs.enableUnstable.
|
||||||
then builtins.trace ''
|
broken = buildKernel && (kernelCompatible != null) && !kernelCompatible;
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user