linuxPackages.exfat-nofuse: lazier assertion (/cc #97577)

I'm not sure what happens exactly.  I suspect some construct like mkIf
pushing into boot.kernelPackages contents and tripping on the assertion.
This commit is contained in:
Vladimír Čunát 2020-09-17 22:29:25 +02:00
parent d50881ea95
commit d347b85c02
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -3,10 +3,13 @@
# Upstream build for kernel 4.1 is broken, 3.12 and below seems to be working
assert lib.versionAtLeast kernel.version "4.2" || lib.versionOlder kernel.version "4.0";
# linux kernel above 5.7 comes with its own exfat implementation https://github.com/arter97/exfat-linux/issues/27
assert lib.versionOlder kernel.version "5.8";
stdenv.mkDerivation rec {
# linux kernel above 5.7 comes with its own exfat implementation https://github.com/arter97/exfat-linux/issues/27
# Assertion moved here due to some tests unintenionally triggering it,
# e.g. nixosTests.kernel-latest; it's unclear how/why so far.
assertion = assert lib.versionOlder kernel.version "5.8"; null;
name = "exfat-nofuse-${version}-${kernel.version}";
version = "2020-04-15";