nixpkgs/pkgs/os-specific/linux/apfs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
966 B
Nix
Raw Normal View History

2021-02-09 23:37:24 +00:00
{ lib
, stdenv
, fetchFromGitHub
, kernel
, nixosTests
2021-02-09 23:37:24 +00:00
}:
stdenv.mkDerivation {
pname = "apfs";
version = "unstable-2022-10-20-${kernel.version}";
2021-02-09 23:37:24 +00:00
src = fetchFromGitHub {
owner = "linux-apfs";
repo = "linux-apfs-rw";
rev = "e6eb67c92d425d395eac1c4403629391bdd5064d";
sha256 = "sha256-6rv5qZCjOqt0FaNFhA3tYg6/SdssvoT8kPVhalajgOo=";
2021-02-09 23:37:24 +00:00
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
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)"
];
passthru.tests.test = nixosTests.apfs;
2021-02-09 23:37:24 +00:00
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";
2021-02-09 23:37:24 +00:00
maintainers = with maintainers; [ Luflosi ];
};
}