1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6buildGoModule rec {
7 pname = "gptscript";
8 version = "0.9.5";
9
10 src = fetchFromGitHub {
11 owner = "gptscript-ai";
12 repo = "gptscript";
13 tag = "v${version}";
14 hash = "sha256-9wyDcvY5JCjtvx6XtvHwOsZLCiN1fRn0wBGaIaw2iRQ=";
15 };
16
17 vendorHash = "sha256-ajglXWGJhSJtcrbSBmxmriXFTT+Vb4xYq0Ec9SYRlQk=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X github.com/gptscript-ai/gptscript/pkg/version.Tag=v${version}"
23 ];
24
25 # Requires network access
26 doCheck = false;
27
28 meta = {
29 homepage = "https://github.com/gptscript-ai/gptscript";
30 changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v${version}";
31 description = "Build AI assistants that interact with your systems";
32 license = with lib.licenses; [ asl20 ];
33 maintainers = with lib.maintainers; [ jamiemagee ];
34 mainProgram = "gptscript";
35 };
36}