From f3b4ae748dca4da1b33a493199788b0ea88c542e Mon Sep 17 00:00:00 2001 From: thinnerthinker Date: Sat, 14 Dec 2024 16:33:26 +0200 Subject: [PATCH 1/2] maintainers: add thinnerthinker --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3b4da4e8850ed..51878646eac59 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -22384,6 +22384,11 @@ github = "thilobillerbeck"; githubId = 7442383; }; + thinnerthinker = { + name = "thinnerthinker"; + github = "thinnerthinker"; + githubId = 144260188; + }; thled = { name = "Thomas Le Duc"; email = "dev@tleduc.de"; From ffde3ffade3d99fe6cb3192da1b82af93ecc32f9 Mon Sep 17 00:00:00 2001 From: thinnerthinker Date: Sat, 14 Dec 2024 16:33:44 +0200 Subject: [PATCH 2/2] repomix: init at 0.2.6 --- pkgs/by-name/re/repomix/package.nix | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/re/repomix/package.nix diff --git a/pkgs/by-name/re/repomix/package.nix b/pkgs/by-name/re/repomix/package.nix new file mode 100644 index 0000000000000..d5c5e01cab0c3 --- /dev/null +++ b/pkgs/by-name/re/repomix/package.nix @@ -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"; + }; +}