Skip to content

Commit 572afcc

Browse files
committed
flake: remove flake-utils and formatter
1 parent ca086c4 commit 572afcc

File tree

2 files changed

+31
-61
lines changed

2 files changed

+31
-61
lines changed

flake.lock

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

flake.nix

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6-
flake-utils.url = "github:numtide/flake-utils";
76
# imports nixpkgs which is bad for performance
87
# uses lib, fetchurl, dotnetCorePackages, zip
98
nuget-packageslock2nix = {
@@ -15,6 +14,23 @@
1514
outputs =
1615
inputs:
1716
with inputs;
17+
let
18+
supportedSystems = [
19+
"x86_64-linux"
20+
"aarch64-linux"
21+
];
22+
withPkgs =
23+
f:
24+
nixpkgs.lib.genAttrs supportedSystems (
25+
system:
26+
f (
27+
import nixpkgs {
28+
inherit system;
29+
overlays = [ self.outputs.overlays.default ];
30+
}
31+
)
32+
);
33+
in
1834
{
1935
nixosModules.default = import ./nix/module.nix self.outputs.overlays.default;
2036

@@ -24,30 +40,18 @@
2440
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
2541
};
2642
};
27-
}
28-
//
29-
flake-utils.lib.eachSystem
30-
[
31-
"x86_64-linux"
32-
"aarch64-linux"
33-
]
34-
(
35-
system:
36-
let
37-
pkgs = import nixpkgs {
38-
inherit system;
39-
overlays = [ self.outputs.overlays.default ];
40-
};
41-
in
42-
{
43-
packages.default = pkgs.moe-dotnet;
44-
devShells.default = pkgs.mkShell {
45-
packages = with pkgs; [
46-
dotnet-sdk_8
47-
omnisharp-roslyn
48-
];
49-
};
50-
formatter = pkgs.nixfmt-rfc-style;
51-
}
52-
);
43+
44+
packages = withPkgs (pkgs: {
45+
default = pkgs.moe-dotnet;
46+
});
47+
48+
devShells = withPkgs (pkgs: {
49+
default = pkgs.mkShell {
50+
packages = with pkgs; [
51+
dotnet-sdk_8
52+
omnisharp-roslyn
53+
];
54+
};
55+
});
56+
};
5357
}

0 commit comments

Comments
 (0)