2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "exfat-nofuse-${version}-${kernel.version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2020-04-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-09-25 04:45:31 +00:00
|
|
|
owner = "barrybingo";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "exfat-nofuse";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "297a5739cd4a942a1d814d05a9cd9b542e7b8fc8";
|
|
|
|
sha256 = "14jahy7n6pr482fjfrlf9ck3f2rkr5ds0n5r85xdfsla37ria26d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
2021-02-05 17:12:51 +00:00
|
|
|
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-06-15 15:56:04 +00:00
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m644 -b -D exfat.ko $out/lib/modules/${kernel.modDirVersion}/kernel/fs/exfat/exfat.ko
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "exfat kernel module";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
|
|
platforms = lib.platforms.linux;
|
2022-01-13 20:06:32 +00:00
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|