Unverified Commit d347b85c authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

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.
parent d50881ea
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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";