mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
30 lines
780 B
Nix
30 lines
780 B
Nix
{ buildNpmPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "promptfoo";
|
|
version = "0.57.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "promptfoo";
|
|
repo = "promptfoo";
|
|
rev = "${version}";
|
|
hash = "sha256-YjVnQmDfc6KBykAHPcRoM88Njlb6odhKWR0ZgFQSkVs=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-sgcMtWPsikAuMCZ1h5IV4Ly+lO3/OKkTzGm8iFx3HiM=";
|
|
|
|
dontNpmBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "Test your prompts, models, RAGs. Evaluate and compare LLM outputs, catch regressions, and improve prompt quality";
|
|
mainProgram = "promptfoo";
|
|
homepage = "https://www.promptfoo.dev/";
|
|
changelog = "https://github.com/promptfoo/promptfoo/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.nathanielbrough ];
|
|
};
|
|
}
|