Most of the code is licenced under GPL 2 or later, with the following
exceptions:
- alsactl is mostly GPL 2+ with init_parse.c, init_sysdeps.c,
init_sysdeps.c, init_utils_run.c and init_utils_string.c being marked
as GPL 2 only, and
- alsaucm is LGPL 2.1 or later.
I think it is safe to assume that following explicit licence
compatibility clauses the complete package can be distributed under
the terms of GPL version 2, but this commit exposes the licence
information as precisely as possible.
The udev rules are somewhat broken, with the goto targets just missing.
NixOS has its own set of alsa rules files, so just remove the broken rules here.
```
$ udevadm verify --no-style /nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules
/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules:16 GOTO="alsa_restore_std" has no matching label, ignoring.
/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules:16 The line has no effect any more, dropping.
/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules:20 GOTO="alsa_restore_std" has no matching label, ignoring.
/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules:20 The line has no effect any more, dropping.
/nix/store/xwwigrmbdipf38j6b9d4wjvrg5n42iq0-alsa-utils-1.2.13/lib/udev/rules.d/90-alsa-restore.rules: udev rules check failed.
1 udev rules files have been checked.
Success: 0
Fail: 1
```
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
Reproduction script:
# Bulk rewrite
./maintainers/scripts/sha-to-sri.py pkgs/by-name
# Revert some packages which will need manual intervention
for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
git checkout -- "pkgs/by-name/${n:0:2}/${n}"
done