2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGo122Module,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
buildGo122Module rec {
|
|
|
|
pname = "gptscript";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.5.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gptscript-ai";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-teZQhGYKJ5Ma5by3Wug5B1hAV1tox94MF586ZeEXp6o=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-0irUcEomQzo9+vFJEk28apLNuJdsX1RHEqB7T88X7Ks=";
|
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; {
|
|
|
|
homepage = "https://gptscript.ai";
|
|
|
|
changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v{version}";
|
|
|
|
description = "Natural Language Programming";
|
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";
|
|
|
|
};
|
|
|
|
}
|