2021-02-09 23:37:24 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, kernel
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "apfs";
|
2022-07-27 20:16:00 +00:00
|
|
|
version = "unstable-2022-07-24-${kernel.version}";
|
2021-02-09 23:37:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-apfs";
|
|
|
|
repo = "linux-apfs-rw";
|
2022-07-27 20:16:00 +00:00
|
|
|
rev = "925d86b7be3ccf21b17734cfececf40e43c4598e";
|
|
|
|
sha256 = "sha256-N5lGJu4c03cVDk3WTcegzZHBDmguPEX8dCedJS2TMSI=";
|
2021-02-09 23:37:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2022-02-10 01:35:56 +00:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
2021-02-09 23:37:24 +00:00
|
|
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
|
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
"INSTALL_MOD_PATH=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "APFS module for linux";
|
|
|
|
homepage = "https://github.com/linux-apfs/linux-apfs-rw";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
2022-08-01 09:05:02 +00:00
|
|
|
broken = kernel.kernelOlder "4.9" || kernel.kernelAtLeast "5.19";
|
2021-02-09 23:37:24 +00:00
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
|
|
};
|
|
|
|
}
|