summary refs log tree commit diff
path: root/pkgs/os-specific/linux/exfat
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-01-09 11:37:20 +0100
committermakefu <github@syntax-fehler.de>2019-01-09 11:37:20 +0100
commiteac67258437d5c128b12b724a6a7ee5ac15999a5 (patch)
treef15cb50e9e4b375d406da6feb54a06bc987cf286 /pkgs/os-specific/linux/exfat
parent03a2dfc63b70f1b748291aa7baef1ae1382e7413 (diff)
downloadnixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar.gz
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar.bz2
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar.lz
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar.xz
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.tar.zst
nixpkgs-eac67258437d5c128b12b724a6a7ee5ac15999a5.zip
exfat-nofuse: unbreak for 4.18 and 4.20
Diffstat (limited to 'pkgs/os-specific/linux/exfat')
-rw-r--r--pkgs/os-specific/linux/exfat/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/exfat/default.nix b/pkgs/os-specific/linux/exfat/default.nix
index 8cc481334e3..6120c707ba7 100644
--- a/pkgs/os-specific/linux/exfat/default.nix
+++ b/pkgs/os-specific/linux/exfat/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, kernel }:
+{ stdenv, lib, fetchFromGitHub, fetchpatch, kernel }:
 
 
 # Upstream build for kernel 4.1 is broken, 3.12 and below seems to be working
@@ -27,12 +27,24 @@ stdenv.mkDerivation rec {
     install -m644 -b -D exfat.ko $out/lib/modules/${kernel.modDirVersion}/kernel/fs/exfat/exfat.ko
   '';
 
+  patches = [
+    # fix compile-errors in 4.18
+    (fetchpatch {
+      url = https://aur.archlinux.org/cgit/aur.git/plain/4.18.patch?h=exfat-dkms-git;
+      sha256 = "18l5h631w8yja7m2kkcf9h335pvlxms23ls539i81nf6xd6yvd78";
+    } )
+    # fix compile-errors in 4.20
+    (fetchpatch {
+      url = https://aur.archlinux.org/cgit/aur.git/plain/4.20.patch?h=exfat-dkms-git;
+      sha256 = "05l5x5yvd4vlvnr1bjl751gzcylvm3g9551fqdx7lqphhyiyv3bc";
+    })
+  ];
+
   meta = {
     description = "exfat kernel module";
     homepage = https://github.com/dorimanx/exfat-nofuse;
     license = lib.licenses.gpl2;
     maintainers = with lib.maintainers; [ makefu ];
     platforms = lib.platforms.linux;
-    broken = stdenv.lib.versionAtLeast kernel.version "4.18";
   };
 }