super: init at 0.1.0

This commit is contained in:
Hythera
2026-02-12 15:43:11 +01:00
parent b4b24202aa
commit fab2c437aa

View File

@@ -0,0 +1,46 @@
{
buildGoModule,
fetchFromGitHub,
lib,
runCommand,
super,
}:
buildGoModule (finalAttrs: {
pname = "super";
version = "0.1.0";
src = fetchFromGitHub {
owner = "brimdata";
repo = "super";
tag = "v${finalAttrs.version}";
hash = "sha256-wgduBXtLnvCTV/8JgCOeD8QutIqW5m9vCJZEbsxKxwY=";
};
vendorHash = "sha256-yGmQmxr2RzpOOwS7qpdBJysJpsgeWDNFBOws1FQQoM8=";
ldflags = [
"-s"
"-X"
"github.com/brimdata/super/cli.version=${finalAttrs.version}"
];
subPackages = [
"cmd/super"
];
passthru.tests = {
hello-world = runCommand "${finalAttrs.pname}-test" { } ''
echo \"'hello, world'\" | ${super}/bin/super -color=false -f=line - > $out
[ "$(cat $out)" = 'hello, world' ]
'';
};
meta = {
changelog = "https://github.com/brimdata/super/releases/tag/v${finalAttrs.version}";
description = "Analytics database that puts JSON and relational tables on equal footing";
homepage = "https://superdb.org";
license = lib.licenses.bsd3;
mainProgram = "super";
maintainers = with lib.maintainers; [ hythera ];
};
})