Skip to content

Commit

Permalink
repomix: init at 0.2.6 (#365006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus authored Dec 14, 2024
2 parents e0fa4d8 + ffde3ff commit d6b7f32
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22459,6 +22459,11 @@
github = "thilobillerbeck";
githubId = 7442383;
};
thinnerthinker = {
name = "thinnerthinker";
github = "thinnerthinker";
githubId = 144260188;
};
thled = {
name = "Thomas Le Duc";
email = "[email protected]";
Expand Down
43 changes: 43 additions & 0 deletions pkgs/by-name/re/repomix/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:

buildNpmPackage rec {
pname = "repomix";
version = "0.2.6";

src = fetchFromGitHub {
owner = "yamadashy";
repo = "repomix";
tag = "v${version}";
hash = "sha256-ZYU85782Z6O69KkKu4h3OqJqAgaxktEgHkcfs2ms9xg=";
};

npmDepsHash = "sha256-r+RIa7ACXJv4/CutnN/3S36US6r7w0EkM9dA4ShWPdU=";

nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;

doCheck = true;

checkPhase = ''
runHook preCheck
npx vitest run
runHook postCheck
'';

passthru.updateScript = nix-update-script { };

meta = {
description = "Tool to pack repository contents to single file for AI consumption";
homepage = "https://github.com/yamadashy/repomix";
changelog = "https://github.com/yamadashy/repomix/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ thinnerthinker ];
mainProgram = "repomix";
};
}

0 comments on commit d6b7f32

Please sign in to comment.