summary refs log tree commit diff
path: root/pkgs/os-specific/linux/exfat
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2020-09-17 22:29:25 +0200
committerVladimír Čunát <v@cunat.cz>2020-09-17 22:32:43 +0200
commitd347b85c020f0de83bd737e9f060a79fd7e225c5 (patch)
tree93d4eb5d474e4bc4a7d2b727b4cdc84dc3f57519 /pkgs/os-specific/linux/exfat
parentd50881ea950fc695e62499c0380312c420b1f596 (diff)
downloadnixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar.gz
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar.bz2
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar.lz
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar.xz
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.tar.zst
nixpkgs-d347b85c020f0de83bd737e9f060a79fd7e225c5.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/exfat')
-rw-r--r--pkgs/os-specific/linux/exfat/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/exfat/default.nix b/pkgs/os-specific/linux/exfat/default.nix
index a92754bba7d..5e212825bab 100644
--- a/pkgs/os-specific/linux/exfat/default.nix
+++ b/pkgs/os-specific/linux/exfat/default.nix
@@ -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";