this derivation will be built: /nix/store/b6dhsjsg2zq4jhz2pk96l829i5rd7wi3-treefmt-check.drv error: build of '/nix/store/b6dhsjsg2zq4jhz2pk96l829i5rd7wi3-treefmt-check.drv' on 'grpc://farm.numtide.com:50051?connect-timeout=22&restart-grace=900&system=aarch64-darwin&token-file=/run/nix-farm-client/farm-token' failed: Cannot build '/nix/store/b6dhsjsg2zq4jhz2pk96l829i5rd7wi3-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/p2abg1w6svf0k9ckzjdza1zaaxqhf497-treefmt-check Last 25 log lines: > ┌─ packages/apm-bin/package.nix:82:8 > │ > 82 │ "x86_64-darwin" > │ ^^^^^^^^^^^^^ > > error[use-formatelf]: Use the in-repo `formatelf` hook, not nixpkgs' `autoPatchelfHook`. Declare `formatelf` as a package.nix argument (the callPackage scope provides it) and add it to nativeBuildInputs; it is a drop-in replacement. > ┌─ packages/apm-bin/package.nix:6:3 > │ > 6 │ autoPatchelfHook, > │ ^^^^^^^^^^^^^^^^ > > error[use-formatelf]: Use the in-repo `formatelf` hook, not nixpkgs' `autoPatchelfHook`. Declare `formatelf` as a package.nix argument (the callPackage scope provides it) and add it to nativeBuildInputs; it is a drop-in replacement. > ┌─ packages/apm-bin/package.nix:34:67 > │ > 34 │ nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; > │ ^^^^^^^^^^^^^^^^ > > Error: 3 error(s) found in code. > Help: Scan succeeded and found error level diagnostics in the codebase. > > > traversed 595 files > emitted 396 files for processing > formatted 113 files (0 changed) in 3.375s > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/b6dhsjsg2zq4jhz2pk96l829i5rd7wi3-treefmt-check.drv error: Cannot build '/nix/store/b6dhsjsg2zq4jhz2pk96l829i5rd7wi3-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/p2abg1w6svf0k9ckzjdza1zaaxqhf497-treefmt-check