Configure Firecrawl with pi agent
This commit is contained in:
parent
5d8c839e3e
commit
6195d36497
3 changed files with 59 additions and 3 deletions
39
pkgs/pi-firecrawl.nix
Normal file
39
pkgs/pi-firecrawl.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "pi-firecrawl";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "firecrawl";
|
||||
repo = "pi-firecrawl";
|
||||
rev = "2d7e8966ad63744fa7d5932f7bd5b4a78eddb894";
|
||||
hash = "sha256-1jbWRlQh72qoGUf2Bl220ZGKVzH/AsDgrS9weGgxb2I=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-+ox5eIPBF9eY0yPw5IL4LypRSxZ1sz8JCFaDjmZ2DuU=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
packageDir="$out/lib/pi-packages/@firecrawl/pi-firecrawl"
|
||||
mkdir -p "$packageDir"
|
||||
|
||||
cp -R package.json package-lock.json README.md LICENSE src node_modules "$packageDir"/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Official Firecrawl extension for the Pi coding agent";
|
||||
homepage = "https://github.com/firecrawl/pi-firecrawl";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue