Skip to content

Commit 6e61fd3

Browse files
authored
chore(nix): remove flake-parts dependency (#284)
Simplify flake.nix by removing flake-parts and using standard nixpkgs.lib.genAttrs pattern instead. The devShell configuration is simple enough that flake-parts adds unnecessary complexity. - Remove flake-parts input - Use forAllSystems helper with genAttrs - Maintain identical functionality
1 parent 86dde82 commit 6e61fd3

File tree

2 files changed

+13
-42
lines changed

2 files changed

+13
-42
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: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6-
flake-parts.url = "github:hercules-ci/flake-parts";
76
};
87

98
outputs =
10-
inputs@{ flake-parts, ... }:
11-
flake-parts.lib.mkFlake { inherit inputs; } {
9+
{ nixpkgs, ... }:
10+
let
1211
systems = [
1312
"x86_64-linux"
1413
"aarch64-linux"
1514
"aarch64-darwin"
1615
];
17-
18-
perSystem =
19-
{ pkgs, ... }:
16+
forAllSystems = nixpkgs.lib.genAttrs systems;
17+
in
18+
{
19+
devShells = forAllSystems (
20+
system:
21+
let
22+
pkgs = nixpkgs.legacyPackages.${system};
23+
in
2024
{
21-
devShells.default = pkgs.mkShell {
25+
default = pkgs.mkShell {
2226
buildInputs = with pkgs; [
2327
# runtime
2428
nodejs_24
@@ -42,6 +46,7 @@
4246
fi
4347
'';
4448
};
45-
};
49+
}
50+
);
4651
};
4752
}

0 commit comments

Comments
 (0)