14 version = "${tag}-${kernel.version}";
16 src = fetchFromGitHub {
18 repo = "linux-apfs-rw";
20 hash = "sha256-UuPWiqR1CiPlBmFleV+y3sowj82iUkgmakNM+T+Mlvc=";
23 hardeningDisable = [ "pic" ];
24 nativeBuildInputs = kernel.moduleBuildDependencies;
26 makeFlags = kernel.makeFlags ++ [
27 "KERNELRELEASE=${kernel.modDirVersion}"
28 "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
29 "INSTALL_MOD_PATH=$(out)"
32 passthru.tests.apfs = nixosTests.apfs;
35 description = "APFS module for linux";
37 The Apple File System (APFS) is the copy-on-write filesystem currently
38 used on all Apple devices. This module provides a degree of experimental
40 If you make use of the write support, expect data corruption.
41 Read-only support is somewhat more complete, with sealed volumes,
42 snapshots, and all the missing compression algorithms recently added.
43 Encryption is still not in the works though.
45 homepage = "https://github.com/linux-apfs/linux-apfs-rw";
46 license = licenses.gpl2Only;
47 platforms = platforms.linux;
48 maintainers = with maintainers; [ Luflosi ];