style: Switch to nixfmt from nixpkgs-fmt

Most of the ecosystem has moved to this formatter,
and many people configured their editors to autoformat it with this formatter.

Closes: https://git.snix.dev/snix/snix/issues/62
Change-Id: Icf39e7836c91fc2ae49fbe22a40a639105bfb0bd
Reviewed-on: https://cl.snix.dev/c/snix/+/30671
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
This commit is contained in:
Ilan Joselevich 2025-08-09 21:08:41 +02:00
parent 3443e6bd08
commit 91d02d8c84
136 changed files with 39952 additions and 11007 deletions

View file

@ -7,18 +7,23 @@ let
inherit (pkgs) fetchpatch;
buildRustCrate =
attrs@{ edition ? "2018"
, pname
, crateName ? pname
, ...
}: pkgs.buildRustCrate (attrs // {
inherit
crateName
edition
;
});
attrs@{
edition ? "2018",
pname,
crateName ? pname,
...
}:
pkgs.buildRustCrate (
attrs
// {
inherit
crateName
edition
;
}
);
in
depot.nix.readTree.drvTargets rec{
depot.nix.readTree.drvTargets rec {
cfg-if = buildRustCrate {
pname = "cfg-if";
version = "1.0.0";
@ -106,7 +111,11 @@ depot.nix.readTree.drvTargets rec{
excludes = [ "Cargo.toml" ];
})
];
dependencies = [ bitflags libc inotify-sys ];
dependencies = [
bitflags
libc
inotify-sys
];
sha256 = "0lqwk7yf6bzc2jzj5iji2p3f29zdpllqd207vgg7jswmg2gqnlqc";
};
@ -136,14 +145,20 @@ depot.nix.readTree.drvTargets rec{
sha256 = "1gb4r6mjwd645jqh02nhn60i7qkw8cgy3xq1r4clnmvz3cmkv1l0";
dependencies = [ memchr ];
buildDependencies = [ version-check ];
features = [ "std" "alloc" ];
features = [
"std"
"alloc"
];
};
base64 = buildRustCrate {
pname = "base64";
version = "0.13.0";
sha256 = "0i0jk5sgq37kc4c90d1g7dp7zvphbg0dbqc1ajnn0vffjxblgamg";
features = [ "alloc" "std" ];
features = [
"alloc"
"std"
];
};
bufstream = buildRustCrate {
@ -180,8 +195,14 @@ depot.nix.readTree.drvTargets rec{
pname = "chrono";
version = "0.4.22";
edition = "2018";
dependencies = [ num-traits num-integer ];
features = [ "alloc" "std" ];
dependencies = [
num-traits
num-integer
];
features = [
"alloc"
"std"
];
sha256 = "01vbn93ba1q2afq10qis41j847damk5ifgn1all337mcscl345fn";
};
@ -216,7 +237,10 @@ depot.nix.readTree.drvTargets rec{
epoll = buildRustCrate {
pname = "epoll";
version = "4.3.3";
dependencies = [ bitflags libc ];
dependencies = [
bitflags
libc
];
sha256 = "1wc8dsd0dhqgskmkwd82fzqsy2hg0wm3833jxhzxkrwcip25yr3a";
};
@ -244,7 +268,11 @@ depot.nix.readTree.drvTargets rec{
pname = "serde_json";
version = "1.0.62";
sha256 = "0sgc8dycigq0nxr4j613m4q733alfb2i10s6nz80lsbbqgrka21q";
dependencies = [ serde ryu itoa ];
dependencies = [
serde
ryu
itoa
];
features = [ "std" ];
};
@ -260,7 +288,10 @@ depot.nix.readTree.drvTargets rec{
version = "0.9.0";
edition = "2015";
sha256 = "1zgl8l15i19lzp90icgwyi6zqdd31b9vm8w129f41d1zd0hs7ayq";
dependencies = [ log serde ];
dependencies = [
log
serde
];
};
semver-parser = buildRustCrate {