Merge pull request #290109 from JamieMagee/gptscript

gptscript: init at 0.1.1
This commit is contained in:
Domen Kožar 2024-02-20 05:08:21 +00:00 committed by GitHub
commit fa15b53dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,37 @@
{
lib,
buildGo122Module,
fetchFromGitHub,
}:
buildGo122Module rec {
pname = "gptscript";
version = "0.1.1";
src = fetchFromGitHub {
owner = "gptscript-ai";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zG75L10WvfkmjwW3ifBHaTkHNXqXvNO0PaXejCc2tls=";
};
vendorHash = "sha256-LV9uLLwdtLJTIxaBB1Jew92S0QjQsceyLEfSrDeDnR4=";
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X main.Commit=${version}"
];
# 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";
license = with licenses; [asl20];
maintainers = with maintainers; [jamiemagee];
mainProgram = "gptscript";
};
}