mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-25 11:24:48 +02:00
6e9a9e194f
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
36 lines
874 B
Nix
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);
|
|
};
|
|
}
|