Skip to content

Commit f9b4c31

Browse files
thomaslaichzimbatm
authored andcommitted
Update csharpier: 0.30.6 -> 1.0.2
1 parent c9d477b commit f9b4c31

File tree

3 files changed

+18
-37
lines changed

3 files changed

+18
-37
lines changed

examples/formatter-csharpier.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Example generated by ../examples.sh
22
[formatter.csharpier]
3-
command = "dotnet-csharpier"
3+
command = "csharpier"
44
excludes = []
5-
includes = ["*.cs"]
6-
options = []
5+
includes = ["*.cs", "*.csproj"]
6+
options = ["format"]

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

programs/csharpier.nix

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,20 @@
1+
{ mkFormatterModule, ... }:
12
{
2-
lib,
3-
pkgs,
4-
config,
5-
mkFormatterModule,
6-
...
7-
}:
8-
let
9-
cfg = config.programs.csharpier;
10-
in
11-
{
12-
meta.maintainers = [ ];
3+
meta.maintainers = [
4+
"thomaslaich"
5+
];
136

147
imports = [
158
(mkFormatterModule {
169
name = "csharpier";
17-
includes = [ "*.cs" ];
10+
package = "csharpier";
11+
mainProgram = "csharpier";
12+
args = [ "format" ];
13+
includes = [
14+
"*.cs"
15+
"*.csproj"
16+
# "*.slnx" # add this with 1.0.3 release
17+
];
1818
})
1919
];
20-
21-
options.programs.csharpier = {
22-
dotnet-sdk = lib.mkPackageOption pkgs "dotnet-sdk" { };
23-
};
24-
25-
config = lib.mkIf cfg.enable {
26-
settings.formatter.csharpier = {
27-
command = pkgs.writeShellApplication {
28-
name = "dotnet-csharpier";
29-
runtimeInputs = with cfg; [
30-
dotnet-sdk
31-
package
32-
];
33-
text = ''
34-
dotnet-csharpier "$@"
35-
'';
36-
};
37-
};
38-
};
3920
}

0 commit comments

Comments
 (0)