nixpkgs/pkgs/by-name/pr/promptfoo/package.nix
2024-04-23 19:20:27 +00:00

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 ];
};
}