File tree Expand file tree Collapse file tree 1 file changed +43
-30
lines changed Expand file tree Collapse file tree 1 file changed +43
-30
lines changed Original file line number Diff line number Diff line change 99 treefmt-nix . inputs . nixpkgs . follows = "nixpkgs" ;
1010 } ;
1111
12- outputs = inputs @{ flake-parts , treefmt-nix , ... } :
13- flake-parts . lib . mkFlake { inherit inputs ; } ( { lib , ... } : {
12+ outputs =
13+ inputs @{ flake-parts , treefmt-nix , ... } :
14+ flake-parts . lib . mkFlake { inherit inputs ; } {
1415 imports = [
1516 treefmt-nix . flakeModule
1617 ] ;
17- systems = lib . systems . flakeExposed ;
18- perSystem = { pkgs , config , ... } : {
19- treefmt = {
20- projectRootFile = "flake.nix" ;
21- programs = {
22- ruff . format = true ;
23- ruff . check = true ;
24- mypy . enable = true ;
25- mypy . directories = {
26- "." = {
27- modules = [ "mpd" ] ;
18+ systems = [
19+ "aarch64-linux"
20+ "x86_64-linux"
21+ "aarch64-darwin"
22+ "x86_64-darwin"
23+ ] ;
24+ perSystem =
25+ { pkgs , config , ... } :
26+ {
27+ treefmt = {
28+ projectRootFile = "flake.nix" ;
29+ programs = {
30+ ruff . format = true ;
31+ ruff . check = true ;
32+ mypy . enable = true ;
33+ mypy . directories = {
34+ "." = {
35+ modules = [ "mpd" ] ;
36+ } ;
2837 } ;
2938 } ;
3039 } ;
31- } ;
3240
33- devShells . default = pkgs . mkShell {
34- packages = with pkgs ; [
35- bashInteractive
36- python310
37- python311
38- python312
39- ( python313 . withPackages ( ps : [ ps . setuptools ps . tox ps . wheel ps . build ] ) )
40- python314
41- pypy3
42- twine
43- mypy
44- ruff
45- config . treefmt . build . wrapper
46- ] ;
41+ devShells . default = pkgs . mkShell {
42+ packages = with pkgs ; [
43+ bashInteractive
44+ python310
45+ python311
46+ python312
47+ ( python313 . withPackages ( ps : [
48+ ps . setuptools
49+ ps . tox
50+ ps . wheel
51+ ps . build
52+ ] ) )
53+ python314
54+ pypy3
55+ twine
56+ mypy
57+ ruff
58+ config . treefmt . build . wrapper
59+ ] ;
60+ } ;
4761 } ;
48- } ;
49- } ) ;
62+ } ;
5063}
You can’t perform that action at this time.
0 commit comments