8000 flake: update treefmt settings by figsoda · Pull Request #736 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ categories = ["command-line-utilities"]
include = ["data", "src", "Cargo.lock", "Cargo.toml", "build.rs"]

[dependencies]
# keep-sorted start
anyhow = "1.0.101"
askalono.workspace = true
cargo = "0.94.0"
Expand Down Expand Up @@ -60,6 +61,7 @@ versions = "7.0.0"
which = "8.0.0"
xdg = "3.0.0"
zip = "8.0.0"
# keep-sorted end

[dependencies.clap]
version = "4.5.58"
Expand Down
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,23 @@

treefmt = {
programs = {
# keep-sorted start block=yes
actionlint.enable = true;
deadnix.enable = true;
deno.enable = true;
keep-sorted = {
priority = 1;
enable = true;
};
nixfmt.enable = true;
oxfmt.enable = true;
rustfmt = {
enable = true;
package = inputs'.fenix.packages.latest.rustfmt;
};
shfmt.enable = true;
statix.enable = true;
taplo.enable = true;
# keep-sorted end
};
settings.global.excludes = [
"*-lock.toml"
Expand Down
2 changes: 2 additions & 0 deletions src/get_nix_license.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let
);

deprecatedAliases = {
# keep-sorted start
"AGPL-3.0" = "agpl3Only";
"BSD-2-Clause-FreeBSD" = "bsd2WithViews";
"BSD-2-Clause-NetBSD" = "bsd2";
Expand All @@ -39,6 +40,7 @@ let
"LGPL-2.1+" = "lgpl21Plus";
"LGPL-3.0" = "lgpl3Only";
"LGPL-3.0+" = "lgpl3Plus";
# keep-sorted end
};

lints = {
Expand Down
2 changes: 2 additions & 0 deletions src/lang/go/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub(super) fn load_go_dependency(inputs: &mut AllInputs, pkg: GoPackage<'_>) {
input_macros!(inputs);

match pkg.name {
// keep-sorted start block=yes
"github.com/diamondburned/gotk4-adwaita/pkg" => build!("libadwaita"),
"github.com/diamondburned/gotk4/pkg" => {
native_build!("pkg-config", "wrapGAppsHook4");
Expand Down Expand Up @@ -35,6 +36,7 @@ pub(super) fn load_go_dependency(inputs: &mut AllInputs, pkg: GoPackage<'_>) {
"golang.design/x/clipboard" => {
build!("xorg.libX11"; linux);
}
// keep-sorted end
_ => {}
}
}
2 changes: 2 additions & 0 deletions src/lang/rust/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub(super) fn load_rust_dependency(inputs: &mut AllInputs, resolve: &Resolve, pk
input_macros!(inputs);

match &*pkg.name() {
// keep-sorted start block=yes
"alsa-sys" => build!("alsa-lib"; linux),
"ash" => build!("vulkan-loader"),
"atk-sys" => build!("atk"),
Expand Down Expand Up @@ -235,6 +236,7 @@ pub(super) fn load_rust_dependency(inputs: &mut AllInputs, resolve: &Resolve, pk
environ!("ZSTD_SYS_USE_PKG_CONFIG", "true");
}
}
// keep-sorted end
_ => {}
}
}
0