nixpkgs/pkgs/by-name/gp/gptscript/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
996 B
Nix
Raw Normal View History

2024-02-20 04:12:51 +00:00
{
lib,
2024-07-10 02:01:27 +01:00
buildGoModule,
2024-02-20 04:12:51 +00:00
fetchFromGitHub,
2024-06-17 00:31:09 +01:00
darwin,
stdenv,
2024-02-20 04:12:51 +00:00
}:
2024-07-10 02:01:27 +01:00
buildGoModule rec {
2024-02-20 04:12:51 +00:00
pname = "gptscript";
2024-08-11 07:48:50 +01:00
version = "0.9.4";
2024-02-20 04:12:51 +00:00
src = fetchFromGitHub {
owner = "gptscript-ai";
repo = pname;
rev = "refs/tags/v${version}";
2024-08-11 07:48:50 +01:00
hash = "sha256-s7AKpoIFRcZfAM6K1MMovzOqgXdAWtnnFR3m+84L3rQ=";
2024-02-20 04:12:51 +00:00
};
2024-08-11 07:48:50 +01:00
vendorHash = "sha256-Kf/ckUuG+SA8WQN2MKL+Xrz91RGPuA7X2/MjryRXsts=";
2024-06-17 00:31:09 +01:00
propagatedBuildInputs = with darwin;
lib.optionals stdenv.isDarwin [Security];
2024-02-20 04:12:51 +00:00
ldflags = [
"-s"
"-w"
2024-05-02 14:49:46 +01:00
"-X github.com/gptscript-ai/gptscript/pkg/version.Tag=v${version}"
2024-02-20 04:12:51 +00:00
];
# Requires network access
doCheck = false;
meta = with lib; {
2024-06-17 00:31:09 +01:00
homepage = "https://github.com/gptscript-ai/gptscript";
2024-06-16 21:48:03 +01:00
changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v${version}";
2024-06-17 00:31:09 +01:00
description = "Build AI assistants that interact with your systems";
2024-05-02 14:49:46 +01:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ jamiemagee ];
2024-02-20 04:12:51 +00:00
mainProgram = "gptscript";
};
}