mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
apfsprogs: format with nixfmt-rfc-style
This commit is contained in:
parent
66c076ed74
commit
2c1a608bf7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user