fix nix functional test & add mole to brew, del osgrep bd

This commit is contained in:
Rasyidan Akbar F. 2026-01-05 00:11:13 +07:00
commit d8ad4e916d
11 changed files with 13 additions and 7398 deletions

View file

@ -4,8 +4,5 @@ let
system = pkgs.stdenv.hostPlatform.system;
llmPkgs = llm-agents.packages.${system};
in {
osgrep = pkgs.callPackage ./osgrep.nix { };
opencode = llmPkgs.opencode;
# Source beads from llm-agents.nix
beads = llmPkgs.beads;
}

File diff suppressed because it is too large Load diff

View file

@ -1,32 +0,0 @@
{ lib, buildNpmPackage, fetchurl, python3 }:
buildNpmPackage rec {
pname = "osgrep";
version = "0.5.16";
src = fetchurl {
url = "https://registry.npmjs.org/${pname}/-/${pname}-${version}.tgz";
hash = "sha256-V23PNxtMCdRaqr4uDOs0rptmSROUrUO7I9HazoGqUCQ=";
};
sourceRoot = "package";
postPatch = ''
cp ${./osgrep-package-lock.json} package-lock.json
'';
npmDepsHash = "sha256-JDeZ3kcsbcZM//0846i1gsvoAgMpIpN8c160cp7wB5s=";
npmFlags = [ "--legacy-peer-deps" ];
dontNpmBuild = true; # Already built in npm package
nativeBuildInputs = [ python3 ];
meta = {
description = "Semantic grep for AI agents";
homepage = "https://github.com/Ryandonofrio3/osgrep";
license = lib.licenses.asl20;
mainProgram = "osgrep";
};
}