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