Merge pull request #312426 from jonochang/jonochang-add-stackql

stackql: init at 0.5.643
This commit is contained in:
kirillrdy 2024-05-23 17:21:51 +10:00 committed by GitHub
commit e8ce04a9ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View File

@ -9963,6 +9963,12 @@
githubId = 8580434;
name = "Jonny Bolton";
};
jonochang = {
name = "Jono Chang";
email = "j.g.chang@gmail.com";
github = "jonochang";
githubId = 13179;
};
jonringer = {
email = "jonringer117@gmail.com";
matrix = "@jonringer:matrix.org";

View File

@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
buildGoModule,
testers,
stackql,
}:
buildGoModule rec {
pname = "stackql";
version = "0.5.643";
src = fetchFromGitHub {
owner = "stackql";
repo = "stackql";
rev = "v${version}";
hash = "sha256-9W6bEI+5Q0Kgbd14sWKde3I6WIVz1ZxsXmR009mOPog=";
};
vendorHash = "sha256-xcly4jtdUkx/s+YWYFBVeuI2kQBu2oqbLN9ZKkHppkA=";
ldflags = [
"-s"
"-w"
"-X github.com/stackql/stackql/internal/stackql/cmd.BuildMajorVersion=${builtins.elemAt (lib.splitVersion version) 0}"
"-X github.com/stackql/stackql/internal/stackql/cmd.BuildMinorVersion=${builtins.elemAt (lib.splitVersion version) 1}"
"-X github.com/stackql/stackql/internal/stackql/cmd.BuildPatchVersion=${builtins.elemAt (lib.splitVersion version) 2}"
"-X github.com/stackql/stackql/internal/stackql/cmd.BuildDate=2024-05-15T07:51:52Z" # date of commit hash
"-X stackql/internal/stackql/planbuilder.PlanCacheEnabled=true"
];
__darwinAllowLocalNetworking = true;
checkFlags = [ "--tags json1,sqleanal" ];
passthru.tests.version = testers.testVersion {
package = stackql;
version = "v${version}";
};
meta = {
homepage = "https://github.com/stackql/stackql";
description = "Deploy, manage and query cloud resources and interact with APIs using SQL";
mainProgram = "stackql";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jonochang ];
};
}