summary refs log tree commit diff
path: root/pkgs/os-specific/linux/exfat
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-02-28 16:28:23 +0100
committermakefu <github@syntax-fehler.de>2017-02-28 16:28:23 +0100
commitb4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09 (patch)
tree2f2da7c87264f7abc14998bfbc805f084bdcb48a /pkgs/os-specific/linux/exfat
parente0b04b4c37cbdad66491f5ac018166a6d1e100e2 (diff)
downloadnixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar.gz
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar.bz2
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar.lz
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar.xz
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.tar.zst
nixpkgs-b4ff1ba4a9f959e23d3181c5a7f7fda5b6a4ec09.zip
exfat-nofuse: exclude 4.1 kernel build
Diffstat (limited to 'pkgs/os-specific/linux/exfat')
-rw-r--r--pkgs/os-specific/linux/exfat/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/exfat/default.nix b/pkgs/os-specific/linux/exfat/default.nix
index 394092b8da9..fa2939e947e 100644
--- a/pkgs/os-specific/linux/exfat/default.nix
+++ b/pkgs/os-specific/linux/exfat/default.nix
@@ -1,8 +1,11 @@
-{ stdenv, fetchFromGitHub, kernel }:
+{ stdenv, lib, fetchFromGitHub, kernel }:
 
 # Upstream build for kernel > 4.10 is currently broken
 # Reference: https://github.com/dorimanx/exfat-nofuse/issues/103
-assert stdenv.lib.versionOlder kernel.version "4.10";
+assert lib.versionOlder kernel.version "4.10";
+
+# 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";
 
 stdenv.mkDerivation rec {
   name = "exfat-nofuse-${version}-${kernel.version}";
@@ -28,8 +31,8 @@ stdenv.mkDerivation rec {
   meta = {
     description = "exfat kernel module";
     homepage = https://github.com/dorimanx/exfat-nofuse;
-    license = stdenv.lib.licenses.gpl2;
-    maintainers = with stdenv.lib.maintainers; [ makefu ];
-    platforms = stdenv.lib.platforms.linux;
+    license = lib.licenses.gpl2;
+    maintainers = with lib.maintainers; [ makefu ];
+    platforms = lib.platforms.linux;
   };
 }