mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
30 lines
781 B
Nix
30 lines
781 B
Nix
{ buildNpmPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "promptfoo";
|
|
version = "0.49.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "promptfoo";
|
|
repo = "promptfoo";
|
|
rev = "${version}";
|
|
hash = "sha256-j+B5EfMK/CCgezPq/2RSAU7Jcyd4QPyU70H4Es0dVL0=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-lhlhK9Hymz5JY/lsFVHu9jfMpQ8/8fC+8dmMqU9xK7Q=";
|
|
|
|
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 ];
|
|
};
|
|
}
|