Merge pull request #53696 from makefu/pkgs/exfat-nofuse/update

exfat-nofuse: unbreak for 4.18 and 4.20
This commit is contained in:
Jörg Thalheim 2019-01-09 12:01:24 +00:00 committed by GitHub
commit e6ca0fb71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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";
};
}