39 lines
934 B
Nix
39 lines
934 B
Nix
{ 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;
|
|
};
|
|
}
|