02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
38 lines
892 B
Nix
38 lines
892 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "apfsprogs";
|
|
version = "unstable-2022-07-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linux-apfs";
|
|
repo = "apfsprogs";
|
|
rev = "8c5340bcc0a261ffe6e5ed85a1742fb60ee982f3";
|
|
sha256 = "sha256-cDxXWfXl1VxdpKBcU00ULWlidzg6kQFG4AGEu5DBCaw=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|