Files
Kazuki Yamada 6e9a9e194f refactor(nix): Drop package output, keep dev shell only
intent(nix-scope): match ccusage's flake style — provide a development environment for Nix users without taking on the maintenance burden of a packaged CLI
rejected(buildNpmPackage): npmDepsHash must be regenerated whenever package-lock.json changes; without CI to catch the mismatch, every dependency bump silently breaks `nix run github:yamadashy/repomix` for end users following the README
constraint(issue-416): #416 (Nix install method) is no longer addressed by this PR — it stays open and can be revisited via importNpmLock or nixpkgs submission later
decision(devshell-only): avoids the entire fixed-output-derivation hash dance — flake.lock alone (only nixpkgs pinned) is sufficient for reproducibility of the dev shell
2026-05-01 00:20:31 +09:00

36 lines
874 B
Nix

{
description = "Repomix pack repository contents into a single AI-friendly file";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
forAllSystems =
f:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [
pkgs.nodejs_24
pkgs.git
];
shellHook = ''
echo "Repomix dev shell"
echo " node: $(node --version)"
echo " npm: $(npm --version)"
echo ""
echo "Run 'npm ci' to install dependencies, then 'npm run build'."
'';
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt);
};
}