Unverified Commit 573a0dc7 authored by Luflosi's avatar Luflosi
Browse files

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

Diff: https://github.com/linux-apfs/apfsprogs/compare/91827679dfb1d6f5719fbe22fa67e89c17adb133...990163894d871f51ba102a75aed384a275c5991b

Patch the code to let the tools output the git commit they were built with when running them with `-v`.
parent e0af35e1
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})