depot/third_party/nixpkgs/pkgs/by-name/pr/promptfoo/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

29 lines
781 B
Nix

{ buildNpmPackage
, fetchFromGitHub
, lib
}:
buildNpmPackage rec {
pname = "promptfoo";
version = "0.55.0";
src = fetchFromGitHub {
owner = "promptfoo";
repo = "promptfoo";
rev = "${version}";
hash = "sha256-XQnsOr+L2MCKPzZeIKzx4XjWF6B18gBVDU0j31CgjUc=";
};
npmDepsHash = "sha256-f7tlRZHjdeIk17hQhzmIbhMwUkoca3J+F65cr0dvSmU=";
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 ];
};
}