depot/third_party/nixpkgs/pkgs/tools/filesystems/apfsprogs/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

43 lines
958 B
Nix

{ 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 ];
};
}