{ lib , stdenv , fetchFromGitHub , nixosTests }: stdenv.mkDerivation { pname = "apfsprogs"; version = "unstable-2023-03-21"; src = fetchFromGitHub { owner = "linux-apfs"; repo = "apfsprogs"; rev = "be41cc38194bd41a41750631577e6d8b31953103"; hash = "sha256-9o8DKXyK5qIoVGVKMJxsinEkbJImyuDglf534kanzFE="; }; buildPhase = '' runHook preBuild make -C apfsck $makeFlags make -C mkapfs $makeFlags runHook postBuild ''; installPhase = '' runHook preInstall make -C apfsck install DESTDIR="$out" $installFlags make -C mkapfs install DESTDIR="$out" $installFlags runHook postInstall ''; passthru.tests = { apfs = nixosTests.apfs; }; meta = with lib; { description = "Experimental APFS tools for linux"; homepage = "https://github.com/linux-apfs/apfsprogs"; license = licenses.gpl2Only; platforms = platforms.linux; maintainers = with maintainers; [ Luflosi ]; }; }