git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitd347b85c020f0de83bd737e9f060a79fd7e225c5 authorVladimír Čunát <v@cunat.cz> dateThu 17 Sep 2020, 22:29 (6 years ago) parentd50881e
1 file changed+5−2
pkgs/os-specific/linux/exfat/default.nix+5−2
pkgs/os-specific/linux/exfat/default.nix+5−2
@@ -3,10 +3,13 @@
33
44# Upstream build for kernel 4.1 is broken, 3.12 and below seems to be working
55assert lib.versionAtLeast kernel.version "4.2" || lib.versionOlder kernel.version "4.0";
6−# linux kernel above 5.7 comes with its own exfat implementation https://github.com/arter97/exfat-linux/issues/27
7−assert lib.versionOlder kernel.version "5.8";
86
97stdenv.mkDerivation rec {
8+ # linux kernel above 5.7 comes with its own exfat implementation https://github.com/arter97/exfat-linux/issues/27
9+ # Assertion moved here due to some tests unintenionally triggering it,
10+ # e.g. nixosTests.kernel-latest; it's unclear how/why so far.
11+ assertion = assert lib.versionOlder kernel.version "5.8"; null;
12+
1013 name = "exfat-nofuse-${version}-${kernel.version}";
1114 version = "2020-04-15";
1215