mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
30 lines
781 B
Nix
30 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 ];
|
|
};
|
|
}
|