mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
zfs: remove trace output
We cannot have trace output if the package is marked broken, because ofborg will consider the evaluation failed if there is any output. Hence if there is any unsupported kernel version in nixpkgs, the trace will show up and ofborg will complain.
This commit is contained in:
parent
94a52465b7
commit
e4b05d9af5
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue