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