apfsprogs: unstable-2023-06-06 -> unstable-2023-11-30

Diff: 91827679df...990163894d

Patch the code to let the tools output the git commit they were built with when running them with `-v`.
This commit is contained in:
Luflosi 2024-01-21 17:19:50 +01:00
parent e0af35e114
commit 573a0dc7fc
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -4,17 +4,27 @@
, nixosTests
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "apfsprogs";
version = "unstable-2023-06-06";
version = "unstable-2023-11-30";
src = fetchFromGitHub {
owner = "linux-apfs";
repo = "apfsprogs";
rev = "91827679dfb1d6f5719fbe22fa67e89c17adb133";
hash = "sha256-gF7bOozAGGpuVP23mnPW81qH2gnVUdT9cxukzGJ+ydI=";
rev = "990163894d871f51ba102a75aed384a275c5991b";
hash = "sha256-yCShZ+ALzSe/svErt9/i1JyyEvbIeABGPbpS4lVil0A=";
};
postPatch = let
shortRev = builtins.substring 0 9 finalAttrs.src.rev;
in ''
substituteInPlace \
apfs-snap/Makefile apfsck/Makefile mkapfs/Makefile \
--replace \
'$(shell git describe --always HEAD | tail -c 9)' \
'${shortRev}'
'';
buildPhase = ''
runHook preBuild
make -C apfs-snap $makeFlags
@ -44,4 +54,4 @@ stdenv.mkDerivation {
platforms = platforms.linux;
maintainers = with maintainers; [ Luflosi ];
};
}
})