2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGo122Module,
|
|
|
|
fetchFromGitHub,
|
2024-06-20 14:57:18 +00:00
|
|
|
darwin,
|
|
|
|
stdenv,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
buildGo122Module rec {
|
|
|
|
pname = "gptscript";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.8.2";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gptscript-ai";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-BqGoIDFquVMGMkKe2IO3Se4IeqgVSqjv00gfhJf8evs=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-oI2agy8FOyoNl0zQzvXMsHY5tG1QNvkQf+n2GVGyNz8=";
|
|
|
|
|
|
|
|
propagatedBuildInputs = with darwin;
|
|
|
|
lib.optionals stdenv.isDarwin [Security];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2024-05-15 15:35:15 +00:00
|
|
|
"-X github.com/gptscript-ai/gptscript/pkg/version.Tag=v${version}"
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
homepage = "https://github.com/gptscript-ai/gptscript";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v{version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Build AI assistants that interact with your systems";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "gptscript";
|
|
|
|
};
|
|
|
|
}
|