f61cd259d4
GitOrigin-RevId: 82155ff501c7622cb2336646bb62f7624261f6d7
35 lines
891 B
Nix
35 lines
891 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, kernel
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "apfs";
|
|
version = "unstable-2021-09-21-${kernel.version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linux-apfs";
|
|
repo = "linux-apfs-rw";
|
|
rev = "362c4e32ab585b9234a26aa3e49f29b605612a31";
|
|
sha256 = "sha256-Y8/PGPLirNrICF+Bum60v/DBPa1xpox5VBvt64myZzs=";
|
|
};
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = [
|
|
"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;
|
|
broken = kernel.kernelOlder "4.9";
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
};
|
|
}
|