Skip to content

Commit 32bfac7

Browse files
authored
chore: remove flake-parts dependency (#793)
Simplify flake.nix by removing flake-parts and using plain Nix. The project only defines a single devShell, which doesn't require the complexity of flake-parts. Multi-system support is achieved with a simple forAllSystems helper using nixpkgs.lib.genAttrs. This reduces dependencies and makes the flake more straightforward.
1 parent 232d6b9 commit 32bfac7

File tree

2 files changed

+12
-53
lines changed

2 files changed

+12
-53
lines changed

flake.lock

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

flake.nix

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
{
22
description = "Usage analysis tool for Claude Code";
33

4-
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6-
flake-parts.url = "github:hercules-ci/flake-parts";
7-
};
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
85

9-
outputs = inputs@{ flake-parts, nixpkgs, ... }:
10-
flake-parts.lib.mkFlake { inherit inputs; } {
11-
systems = [
12-
"x86_64-linux"
13-
"aarch64-linux"
14-
"x86_64-darwin"
15-
"aarch64-darwin"
16-
];
17-
18-
perSystem = { pkgs, ... }: {
19-
devShells.default = pkgs.mkShell {
6+
outputs = { nixpkgs, ... }:
7+
let
8+
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
9+
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
10+
in {
11+
devShells = forAllSystems (pkgs: {
12+
default = pkgs.mkShell {
2013
buildInputs = with pkgs; [
2114
# Package manager
2215
pnpm_10
@@ -37,6 +30,6 @@
3730
fi
3831
'';
3932
};
40-
};
33+
});
4134
};
4235
}

0 commit comments

Comments
 (0)