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