blob: 515cb79553707e14e3791e6d2e91e8661a9d18a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildGoModule,
fetchFromGitHub,
darwin,
stdenv,
}:
buildGoModule rec {
pname = "gptscript";
version = "0.9.4";
src = fetchFromGitHub {
owner = "gptscript-ai";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-s7AKpoIFRcZfAM6K1MMovzOqgXdAWtnnFR3m+84L3rQ=";
};
vendorHash = "sha256-Kf/ckUuG+SA8WQN2MKL+Xrz91RGPuA7X2/MjryRXsts=";
propagatedBuildInputs = with darwin;
lib.optionals stdenv.isDarwin [Security];
ldflags = [
"-s"
"-w"
"-X github.com/gptscript-ai/gptscript/pkg/version.Tag=v${version}"
];
# Requires network access
doCheck = false;
meta = with lib; {
homepage = "https://github.com/gptscript-ai/gptscript";
changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v${version}";
description = "Build AI assistants that interact with your systems";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ jamiemagee ];
mainProgram = "gptscript";
};
}
|