* Revert some changes from 576fde128a commit.
This update now uses system provided libusb instead of bundled one.
* Also, revert changes from 37a1895466 commit.
udev is not required directly which is used with libusb.
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
The patch for linking with private `abseil-cpp` has been removed because
it is present in the upstream version already.
`ninja` has been added to the dependencies as building with `cmake`+`ninja`
is faster than with `cmake`+`make`.
The `-mod=vendor` go flag has been removed as the vendored version of
`boringssl` cannot be built as-is:
```
go: inconsistent vendoring in /build/android-tools-34.0.4/vendor/boringssl:
golang.org/x/crypto@v0.6.0: is explicitly required in go.mod,
but not marked as explicit in vendor/modules.txt
golang.org/x/net@v0.7.0: is explicitly required in go.mod,
but not marked as explicit in vendor/modules.txt
golang.org/x/sys@v0.5.0: is explicitly required in go.mod,
but not marked as explicit in vendor/modules.txt
golang.org/x/term@v0.5.0: is explicitly required in go.mod,
but not marked as explicit in vendor/modules.txt
```
The last release (version 33.0.3p1 [0], added in 28609af5c7) started to
include avbtool and mkdtboimg [1].
This is just a minor fixup to update the package description and stop
installing avbtool twice:
$ sha256sum /nix/store/f2ld3hjbxnafi3jw299nq4mc94xpcmx6-android-tools-33.0.3p1/bin/avbtool*
d4357c43798d6aa6d5cea3b8f3ad39e54244a1105db8048dc673c44119835e1c /nix/store/f2ld3hjbxnafi3jw299nq4mc94xpcmx6-android-tools-33.0.3p1/bin/avbtool
d4357c43798d6aa6d5cea3b8f3ad39e54244a1105db8048dc673c44119835e1c /nix/store/f2ld3hjbxnafi3jw299nq4mc94xpcmx6-android-tools-33.0.3p1/bin/avbtool.py
[0]: https://github.com/nmeum/android-tools/releases/tag/33.0.3p1
[1]: 0652cba5f4