treewide: format all inactive Nix files

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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
This commit is contained in:
Silvan Mosberger
2024-12-10 20:26:33 +01:00
parent b32a094368
commit 4f0dadbf38
21293 changed files with 701276 additions and 428232 deletions
+73 -11
View File
@@ -1,9 +1,41 @@
{ stdenv, lib, fetchurl, buildDunePackage
, alcotest, mirage-crypto-rng, git-binary
, angstrom, astring, cstruct, decompress, digestif, encore, fmt, checkseum
, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd
, bigstringaf, optint, mirage-flow, domain-name, emile
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt, cmdliner
{
stdenv,
lib,
fetchurl,
buildDunePackage,
alcotest,
mirage-crypto-rng,
git-binary,
angstrom,
astring,
cstruct,
decompress,
digestif,
encore,
fmt,
checkseum,
ke,
logs,
lwt,
ocamlgraph,
uri,
rresult,
base64,
hxd,
bigstringaf,
optint,
mirage-flow,
domain-name,
emile,
mimic,
carton,
carton-lwt,
carton-git,
ipaddr,
psq,
crowbar,
alcotest-lwt,
cmdliner,
}:
buildDunePackage rec {
@@ -21,22 +53,52 @@ buildDunePackage rec {
base64
];
propagatedBuildInputs = [
angstrom astring checkseum cstruct decompress digestif encore fmt
ke logs lwt ocamlgraph uri rresult bigstringaf optint mirage-flow
domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
angstrom
astring
checkseum
cstruct
decompress
digestif
encore
fmt
ke
logs
lwt
ocamlgraph
uri
rresult
bigstringaf
optint
mirage-flow
domain-name
emile
mimic
carton
carton-lwt
carton-git
ipaddr
psq
hxd
];
nativeCheckInputs = [
git-binary
];
checkInputs = [
alcotest alcotest-lwt mirage-crypto-rng crowbar cmdliner
alcotest
alcotest-lwt
mirage-crypto-rng
crowbar
cmdliner
];
doCheck = !stdenv.hostPlatform.isAarch64;
meta = {
description = "Git format and protocol in pure OCaml";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ sternenseemann vbgl ];
maintainers = with lib.maintainers; [
sternenseemann
vbgl
];
homepage = "https://github.com/mirage/ocaml-git";
};
}
+34 -33
View File
@@ -1,36 +1,37 @@
{ buildDunePackage
, git
, mimic
, mimic-happy-eyeballs
, base64
, git-paf
, awa
, awa-mirage
, dns
, dns-client
, tls
, tls-mirage
, uri
, happy-eyeballs-mirage
, happy-eyeballs
, ca-certs-nss
, mirage-crypto
, ptime
, x509
, cstruct
, tcpip
, domain-name
, fmt
, ipaddr
, lwt
, mirage-clock
, mirage-flow
, mirage-time
, alcotest
, alcotest-lwt
, bigstringaf
, logs
, ke
{
buildDunePackage,
git,
mimic,
mimic-happy-eyeballs,
base64,
git-paf,
awa,
awa-mirage,
dns,
dns-client,
tls,
tls-mirage,
uri,
happy-eyeballs-mirage,
happy-eyeballs,
ca-certs-nss,
mirage-crypto,
ptime,
x509,
cstruct,
tcpip,
domain-name,
fmt,
ipaddr,
lwt,
mirage-clock,
mirage-flow,
mirage-time,
alcotest,
alcotest-lwt,
bigstringaf,
logs,
ke,
}:
buildDunePackage {
+20 -19
View File
@@ -1,22 +1,23 @@
{ buildDunePackage
, git
, mimic
, paf
, ca-certs-nss
, fmt
, ipaddr
, logs
, lwt
, mirage-clock
, mirage-time
, rresult
, tls
, uri
, bigstringaf
, domain-name
, httpaf
, mirage-flow
, tls-mirage
{
buildDunePackage,
git,
mimic,
paf,
ca-certs-nss,
fmt,
ipaddr,
logs,
lwt,
mirage-clock,
mirage-time,
rresult,
tls,
uri,
bigstringaf,
domain-name,
httpaf,
mirage-flow,
tls-mirage,
}:
buildDunePackage {
+62 -19
View File
@@ -1,13 +1,38 @@
{ buildDunePackage, git
, rresult, bigstringaf
, fmt, bos, fpath, uri, digestif, logs, lwt
, mirage-clock, mirage-clock-unix, astring, cmdliner
, decompress, domain-name, ipaddr, mtime
, tcpip, mirage-flow, mirage-unix
, alcotest, alcotest-lwt, base64, cstruct
, ke, mirage-crypto-rng, git-binary
, mimic, tls
, cacert, happy-eyeballs-lwt, git-mirage
{
buildDunePackage,
git,
rresult,
bigstringaf,
fmt,
bos,
fpath,
uri,
digestif,
logs,
lwt,
mirage-clock,
mirage-clock-unix,
astring,
cmdliner,
decompress,
domain-name,
ipaddr,
mtime,
tcpip,
mirage-flow,
mirage-unix,
alcotest,
alcotest-lwt,
base64,
cstruct,
ke,
mirage-crypto-rng,
git-binary,
mimic,
tls,
cacert,
happy-eyeballs-lwt,
git-mirage,
}:
buildDunePackage {
@@ -22,18 +47,36 @@ buildDunePackage {
tcpip
];
propagatedBuildInputs = [
rresult bigstringaf
fmt bos fpath digestif logs lwt
astring decompress
domain-name ipaddr mirage-flow mirage-unix
cstruct mimic
tls git happy-eyeballs-lwt
git-mirage mirage-clock-unix
rresult
bigstringaf
fmt
bos
fpath
digestif
logs
lwt
astring
decompress
domain-name
ipaddr
mirage-flow
mirage-unix
cstruct
mimic
tls
git
happy-eyeballs-lwt
git-mirage
mirage-clock-unix
];
checkInputs = [
alcotest alcotest-lwt base64 ke
alcotest
alcotest-lwt
base64
ke
mirage-crypto-rng
uri mtime
uri
mtime
cacert # sets up NIX_SSL_CERT_FILE
];
nativeCheckInputs = [ git-binary ];