2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "apfsprogs";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "unstable-2022-10-15";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-apfs";
|
|
|
|
repo = "apfsprogs";
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = "e3d5eec21da31107457f868f7f37c48c6809b7fa";
|
|
|
|
hash = "sha256-gxcsWLIs2+28SOLLeAP7iP6MaLE445CKTlD+gVE6V5g=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
make -C apfsck $makeFlags
|
|
|
|
make -C mkapfs $makeFlags
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-12-19 01:06:50 +00:00
|
|
|
make -C apfsck install DESTDIR="$out" $installFlags
|
|
|
|
make -C mkapfs install DESTDIR="$out" $installFlags
|
2021-06-28 23:13:55 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|