blob: bbda1721cceeb3106786249904ff53a8d580e5e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ 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 ];
};
}
|