Merge pull request #290109 from JamieMagee/gptscript

gptscript: init at 0.1.1

authored by Domen Kožar and committed by GitHub fa15b53d 931e2b8a

+37
+37
pkgs/by-name/gp/gptscript/package.nix
··· 1 + { 2 + lib, 3 + buildGo122Module, 4 + fetchFromGitHub, 5 + }: 6 + buildGo122Module rec { 7 + pname = "gptscript"; 8 + version = "0.1.1"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "gptscript-ai"; 12 + repo = pname; 13 + rev = "refs/tags/v${version}"; 14 + hash = "sha256-zG75L10WvfkmjwW3ifBHaTkHNXqXvNO0PaXejCc2tls="; 15 + }; 16 + 17 + vendorHash = "sha256-LV9uLLwdtLJTIxaBB1Jew92S0QjQsceyLEfSrDeDnR4="; 18 + 19 + ldflags = [ 20 + "-s" 21 + "-w" 22 + "-X main.Version=${version}" 23 + "-X main.Commit=${version}" 24 + ]; 25 + 26 + # Requires network access 27 + doCheck = false; 28 + 29 + meta = with lib; { 30 + homepage = "https://gptscript.ai"; 31 + changelog = "https://github.com/gptscript-ai/gptscript/releases/tag/v{version}"; 32 + description = "Natural Language Programming"; 33 + license = with licenses; [asl20]; 34 + maintainers = with maintainers; [jamiemagee]; 35 + mainProgram = "gptscript"; 36 + }; 37 + }