apfsprogs: format with nixfmt-rfc-style

This commit is contained in:
Luflosi 2024-11-07 11:04:08 +01:00
parent 66c076ed74
commit 2c1a608bf7
No known key found for this signature in database
GPG Key ID: 743C5DD6900A1FF0

View File

@ -1,7 +1,8 @@
{ lib
, stdenv
, fetchFromGitHub
, nixosTests
{
lib,
stdenv,
fetchFromGitHub,
nixosTests,
}:
stdenv.mkDerivation (finalAttrs: {
@ -15,15 +16,17 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-+c+wU52XKNOTxSpSrkrNWoGEYw6Zo4CGEOyKMvkXEa0=";
};
postPatch = let
shortRev = builtins.substring 0 9 finalAttrs.src.rev;
in ''
substituteInPlace \
apfs-snap/Makefile apfsck/Makefile mkapfs/Makefile apfs-label/Makefile \
--replace-fail \
'$(shell git describe --always HEAD | tail -c 9)' \
'${shortRev}'
'';
postPatch =
let
shortRev = builtins.substring 0 9 finalAttrs.src.rev;
in
''
substituteInPlace \
apfs-snap/Makefile apfsck/Makefile mkapfs/Makefile apfs-label/Makefile \
--replace-fail \
'$(shell git describe --always HEAD | tail -c 9)' \
'${shortRev}'
'';
buildPhase = ''
runHook preBuild