mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
30 lines
781 B
Nix
30 lines
781 B
Nix
{ buildNpmPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "promptfoo";
|
|
version = "0.54.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "promptfoo";
|
|
repo = "promptfoo";
|
|
rev = "${version}";
|
|
hash = "sha256-ZDr2sJRiy26a+NPAcsqTTAuccQQmvmDdMtrr1FGzaSk=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-ZPwEkhINT0sQc4BNUVbJzI1ffJZzXJa7Ld+0am6MYtM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|