zfsUnstable: fix evaluation of error message

This commit is contained in:
Jörg Thalheim 2018-04-06 16:17:25 +01:00
parent f8fe297ff1
commit 0af5b254ab

View File

@ -27,7 +27,7 @@ let
versionAtLeast kernel.version incompatibleKernelVersion then
throw ''
Linux v${kernel.version} is not yet supported by zfsonlinux v${version}.
${stdenv.lib.optional (!isUnstable) "Try zfsUnstable or set the NixOS option boot.zfs.enableUnstable."}
${stdenv.lib.optionalString (!isUnstable) "Try zfsUnstable or set the NixOS option boot.zfs.enableUnstable."}
''
else stdenv.mkDerivation rec {
name = "zfs-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}";